Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!umich!ox.com!mudos!mju From: mju@mudos.ann-arbor.mi.us (Marc Unangst) Newsgroups: comp.unix.shell Subject: Re: weird csh thing Message-ID: Date: 7 Jan 91 22:58:38 GMT References: Organization: The Programmers' Pit Stop, +1 313 665 2832 Lines: 15 bagchi@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@mudos.ann-arbor.mi.us | "Bus error: passengers dumped" ...!umich!leebai!mudos!mju |