[7195] in Athena Bugs
vax 7.2R: csh eval
daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Wed Feb 27 10:02:55 1991
From: brlewis@ATHENA.MIT.EDU
Date: Wed, 27 Feb 91 10:02:41 -0500
To: bugs@ATHENA.MIT.EDU
Cc: jefft@ATHENA.MIT.EDU, acevedo@ATHENA.MIT.EDU
--------
System name: euphrosyne
Type and version: CVAXSTAR 7.2R (1 update(s) to same version)
Display type: SM
What were you trying to do?
set var = "eval foo > bar", so that executing $var would run foo
with bar as stdout.
What's wrong:
It works correctly in evaluating && and ||, but ignores >.
Right:
athena% set v1 = "eval echo foo && echo bar"
athena% $v1
foo
bar
Right:
athena% set v2 = "eval blah foo || echo bar"
athena% $v2
blah: Command not found.
bar
Wrong:
athena% set v3 = "eval echo foo > /dev/null"
athena% $v3
foo
What should have happened:
In the example above, $v3 should not have given any output.
Please describe any relevant documentation references:
csh(1)