[net.bugs] CSH `...` command substitution brain damage

jalsop@aesat.UUCP (John Alsop) (07/19/84)

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.