Return to BSD News archive
Newsgroups: comp.unix.bsd.freebsd.misc Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!msunews!agate!howland.erols.net!worldnet.att.net!newsfeed.internetmci.com!news.kddnet.ad.jp!infosphere!news01.so-net.or.jp!sinfony-news01!tokyonet.ad.jp!post-tokyonet!tao!usenet From: Doug Lerner <doug@inJapan.net> Subject: A simple csh script question Content-Type: text/plain; charset=iso-2022-jp Reply-To: doug@inJapan.net Sender: usenet@inJapan.net (Charlie Root) Content-Transfer-Encoding: 7bit Organization: inJapan Message-ID: <332D9485.27FD@inJapan.net> X-Mailer: Mozilla 3.01Gold (Macintosh; I; PPC) Mime-Version: 1.0 Date: Mon, 17 Mar 1997 18:59:18 GMT Lines: 19 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37227 Can somebody answer a simple csh script question for me? In the following script, the last line won't work unless I add "eval" to the front of the line. Without eval, the "~" mark does not cause the expansion to the user's home directory, like it usually does. Why might that be? Thanks, Doug Lerner, Tokyo doug@inJapan.net #!/bin/sh # id=$1 grep ": $id" /etc/aliases eval ls ~$id | grep forward