Operating System - HP-UX
1833386 Members
3115 Online
110052 Solutions
New Discussion

Re: passing params to source in csh

 
Henry Stukenborg
Occasional Contributor

passing params to source in csh

All:

I'm attempting to pass a parameter to the file I'm attempting to source :

source /Archive/woinit/woenv.csh 451

I don't have a problem doing this with tcsh, but csh refuses. I need to have it work with regular old csh so any tips would be helpful.

Also, I'm trying to setup an alias to do this - again, works in tcsh, not csh.

Thanks

-----
Henry Stukenborg
1 REPLY 1
Steven Sim Kok Leong
Honored Contributor

Re: passing params to source in csh

Hi,

I have no problems getting csh to work with source and arguments. Perhaps you would like to post both your env output and your script up to aid us in identifying what went wrong.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com