home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.questions:10365 comp.sys.sgi:12859
- Path: sparky!uunet!caen!nic.umass.edu!dime!lim
- From: lim@cs.umass.edu
- Newsgroups: comp.unix.questions,comp.sys.sgi
- Subject: csh/subshell anomalies
- Message-ID: <52421@dime.cs.umass.edu>
- Date: 25 Aug 92 18:29:21 GMT
- Sender: news@dime.cs.umass.edu
- Reply-To: lim@cs.umass.edu ()
- Followup-To: comp.unix.questions
- Organization: University of Massachusetts, Amherst
- Lines: 36
-
-
- Here's something about csh that's been puzzling me for a while:
-
-
- If I enter: % alias test '(echo \!:*)'
- and: % test a b c > z
- "a b c" is saved in file z as expected.
-
-
- If I enter: % alias test '(echo \!:1; echo \!:2; echo \!:3)'
- and: % test a b c > z
- It returns: a
- b
- c
- but nothing is saved in file z.
-
-
- If I enter: % alias test '(echo \!:*; echo \!:1)'
- and: % test a b > z
- It returns: a
- and saves only "a b" in file z, leaving out the extra "a".
-
-
- In all cases,
- % (test a b c) > z
- saves all output in file z.
-
-
- Is this a known problem, or am I missing something? This happens in csh or
- tcsh-6.02, on either Ultrix-4.2 or Irix-4.0.4. I'd appreciate any help on this.
- Thanks.
-
- --------------------------------------------------------------------------------
- Jonathan Lim Computer Vision Research Group
- lim@cs.umass.edu University of Massachusetts at Amherst
- --------------------------------------------------------------------------------
-