Date: Thu, 26 Jun 2008 05:04:52 -0700 (PDT) From: Juri Mianovich <juri_mian@yahoo.com> To: freebsd-questions@freebsd.org Subject: why can't I use $1 in .cshrc ? Message-ID: <510944.89845.qm@web45604.mail.sp1.yahoo.com>
next in thread | raw e-mail | index | archive | help
I am trying to use this alias in my root .cshrc file: grep $1 /some/file but .cshrc _refuses_ to expand $1 as a proper variable (in this case, the first argument to the alias...) I _think_ it's because $1 is being interpreted as a argument to csh _itself_ when it runs .cshrc ... but maybe I'm wrong. Anyway, how to make it work ? Thanks.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?510944.89845.qm>