
July 13th, 2006, 05:27 PM
|
|
Registered User
|
|
Join Date: Jul 2006
Posts: 1
Time spent in forums: 25 m 30 sec
Reputation Power: 0
|
|
Csh positional parameter clearing
I just acquired a job writing C/UNIX (first UNIX job) and am working on legacy code. The csh script that launches my code has one variable parameter that is handled in a csh source I have been unable to locate. I am running on SunOS 5.8 Generic_117xxxx-23 and am just learning my way around C shell scripting.
My problem is that I need to add a new parameter (a C object name) then eat it before the external program processes the command line. If I use shift, I get an error when the second parameter is NULL, so I need to wipe $1 somehow. Any help would be vastly appreciated. 
|