[lug] passing arguments to C shell script ?

arnie asherman1 at uswest.net
Mon Jan 31 22:34:26 MST 2000


OK, this works, but if I try to run it with source or . then it doesn't seem
to work. Any way to pass a parameter in this way?
thanks,

PC Drew wrote:

> it's possible, try this script:
>
> Script:
> #!/bin/csh
>
> echo $argv[1]
>
> Command line will result in:
> $ script.csh blah
> blah
> $
>
> --
> PC Drew
>
> Thus spake arnie on Saturday, January 29, 2000, 2:21:58 PM:
>
> a> I have been told that it is not possible to pass command line arguments
> a> into a C shell script. Does anyone know if this is true. Seems hard to
> a> believe, but i have not been able to get it to work so far.
> a> thanks,
>

--
arnie sherman
frenomulax at bigfoot.com

"Paradise is exactly like where you are right now,
 only much, much better."
        -Laurie Anderson








More information about the LUG mailing list