Article View: net.bugs
Article #238Re: CSH `...` command substitution brain damage
From: John Alsop
Date: Thu, 19 Jul 1984 20:30
Date: Thu, 19 Jul 1984 20:30
20 lines
1165 bytes
1165 bytes
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.
Technical Details
Message-ID:
<184@aesat.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!aesat!jalsopReferences:
<492@masscomp.UUCP>, <8365@watmath.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site aesat.UUCP Path: arc1-ca.pugleaf.net!utzoo!aesat!jalsop From: jalsop@aesat.UUCP (John Alsop) Newsgroups: net.bugs Subject: Re: CSH `...` command substitution brain damage Message-ID: <184@aesat.UUCP> Date: Thu, 19-Jul-84 16:30:46 EDT Article-I.D.: aesat.184 Posted: Thu Jul 19 16:30:46 1984 Date-Received: Thu, 19-Jul-84 17:13:25 EDT References: <492@masscomp.UUCP>, <8365@watmath.UUCP> Organization: AES Data Inc., Mississauga Ont., Canada Lines: 21