why can't I use $1 in .cshrc ?

Juri Mianovich juri_mian at yahoo.com
Thu Jun 26 12:17:12 UTC 2008


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.


      



More information about the freebsd-questions mailing list