CSH `...` command substitution brain damage
John Alsop
jalsop at aesat.UUCP
Fri Jul 20 06:30:46 AEST 1984
As the subject of csh commands is on everyone's mind, could someone please
explain the following:
The command
eval date > xxx
puts the date in a file called xxx.
The command
eval 'date > xxx'
puts the date on the screen, ignnoring the output redirection.
The command
eval 'date | lpr'
sends the date through the pipe to the printer.
One is tempted to conclude from the second example, that eval doesn't
parse quoted strings. The third example shows however, that it does, at
least to the extent of recognizing pipes.
Does someone know how to make example 2 behave the way it "ought" to.
More information about the Net.bugs
mailing list