Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site bnl.UUCP Path: utzoo!linus!philabs!sbcs!bnl44!bnl!drs From: drs@bnl.UUCP (David R. Stampf) Newsgroups: net.unix-wizards Subject: C-shell puzzles Message-ID: <166@bnl.UUCP> Date: Wed, 13-Nov-85 22:02:42 EST Article-I.D.: bnl.166 Posted: Wed Nov 13 22:02:42 1985 Date-Received: Sun, 17-Nov-85 05:33:56 EST Distribution: net Organization: Brookhaven National Lab. Upton, N.Y. Lines: 21 For all of you C-shell fans - heres a couple of bugs/puzzles. (I don't know the answer to the second.) The following alias should give a directory listing of the files which have a specified pattern in the middle. It only works if the pattern is at the end. alias lm 'ls -l *\!**' Its easy to make it work, but I think that the above is acceptable. The next has to do with how do you run a command which has nested command substitutions? From what I can see, you cannot. I would love to be able to type (in a more complicated shell script and using any amount of quoting necessary) echo `echo `date`` but no amount of quoting seems to satisfy the shell. Any ideas? (I know - RTFM, but I have grepped sh and csh for nest, recurs, ... and have come up empty.) Any suggestions would be appreciated. Both problems exist on Suns and Ultrix 1.0.