Xref: utzoo comp.unix.shell:2165 comp.unix.questions:31287 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uwm.edu!linac!att!cbnewse!danj1 From: Dan_Jacobson@ATT.COM Newsgroups: comp.unix.shell,comp.unix.questions Subject: Re: passing parameters in shell scripts Message-ID: <1991May14.012029.8448@cbnewse.att.com> Date: 14 May 91 01:20:29 GMT References: <1991May13.215202.9304@leland.Stanford.EDU> Sender: danj1@cbnewse.att.com (daniel.jacobson) Reply-To: Dan_Jacobson@ihlpz.ATT.COM Organization: AT&T-BL, Naperville IL, USA Lines: 10 In-Reply-To: tonytran@portia.Stanford.EDU's message of 13 May 91 21: 52:02 GMT >>>>> 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]