passing parameters in shell scripts

Dan_Jacobson at ATT.COM Dan_Jacobson at ATT.COM
Tue May 14 11:20:29 AEST 1991


>>>>> On 13 May 91 21:52:02 GMT, tonytran at portia.Stanford.EDU (Tony) said:

Tony> I have variables on a script whose values I'd like to pass on to
Tony> be used on another script.  Can anyone suggest the best method to
Tony> pass parameters in a shell script?

$ cat script1
other_script ${1+"$@"}

[trusty Bourne shell compatible version]



More information about the Comp.unix.questions mailing list