[comp.unix.shell] passing parameters in shell scripts

tonytran@portia.Stanford.EDU (Tony) (05/14/91)

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

Thanks in advance.
Tony

--
tonytran@leland.stanford.edu

Dan_Jacobson@ATT.COM (05/14/91)

>>>>> On 13 May 91 21:52:02 GMT, tonytran@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]