sh built-in quirk (was: Is this a bug in sh?)

Maarten Litmaath maart at cs.vu.nl
Sat Jul 8 11:58:43 AEST 1989


$ foo=bar date > /dev/null
$ echo $foo

$ zork=mids echo $zork > /dev/null
$ echo $zork
mids
$

This is definitely a bug: there should be no difference between the behavior
of normal commands and that of built-in commands. Otherwise a shellscript
assuming `date' is a non-built-in command, might someday fail mysteriously.
-- 
"I HATE arbitrary limits, especially when |Maarten Litmaath @ VU Amsterdam:
   they're small."  (Stephen Savitzky)    |maart at cs.vu.nl, mcvax!botter!maart



More information about the Comp.unix.questions mailing list