weird csh thing

Marc Unangst mju at mudos.ann-arbor.mi.us
Tue Jan 8 09:58:38 AEST 1991


bagchi at eecs.umich.edu (Ranjan Bagchi) writes:
> $ set p = "w | tail +3 "
[...]
> shouldn't "$p" have the same effect as "w | tail +3" ?

No.  The pipe character is not interpreted specially by the shell when
you run "$p"; therefore, you are calling the "w" command with the
arguments "|", "tail", and "+3".

Try "eval $p".

--
Marc Unangst               |
mju at mudos.ann-arbor.mi.us  | "Bus error: passengers dumped"
...!umich!leebai!mudos!mju | 



More information about the Comp.unix.shell mailing list