Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpcc05!hpyhde4!hpycla!hpcuhc!mck From: mck@hpcuhc.cup.hp.com (Doug McKenzie) Newsgroups: comp.unix.questions Subject: Re: passing parameters in shell scripts Message-ID: <250021@hpcuhc.cup.hp.com> Date: 15 May 91 00:27:42 GMT References: <1991May13.215202.9304@leland.Stanford.EDU> Organization: Hewlett Packard, Cupertino Lines: 30 > 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? Hope this helps. Doug McKenzie HP HP-UX Support mck@cup.hp.com #422: cat blah #!/bin/ksh echo blah dollar star is $* echo calling blah2 blah2 $* echo returned from blah2 #423: cat blah2 #!/bin/ksh echo in blah2 echo blah2 dollar star is $* echo about to leave blah2 #424: blah 1 2 3 blah dollar star is 1 2 3 calling blah2 in blah2 blah2 dollar star is 1 2 3 about to leave blah2 returned from blah2