Hello.

I stumbled over a bug in the MUA i maintain, and when checking
against what shells do with lonely unary ! i then came to this:

  #?0|kent:tmp$ dash -c 'if [ ! ! hey ]; then echo du; fi'
  du
  #?0|kent:tmp$ bash -c 'if [ ! ! hey ]; then echo du; fi'
  bash: line 1: [: too many arguments
  #?0|kent:tmp$ busybox.static sh -c 'if [ ! ! hey ]; then echo du; fi'
  du

(The single ! that my MUA bails on seems to be handled
identically by shells.)

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

Reply via email to