Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!stat!sun13!prism!gt0178a From: gt0178a@prism.gatech.EDU (BURNS,JIM) Newsgroups: comp.unix.questions Subject: Re: Can you access command line args from a source'd script? Message-ID: <13117@hydra.gatech.EDU> Date: 29 Aug 90 00:47:42 GMT References: <801@travis.csd.harris.com> Distribution: usa Organization: Georgia Institute of Technology Lines: 16 in article <801@travis.csd.harris.com>, brad@SSD.CSD.HARRIS.COM (Brad Appleton) says: > alias mycmd "set my_argv = ( \!* ); source myfile" > > Big drawback to this approach is that you have to be real carefule not > to stomp on things in the environment since you are NOT a separate shell. Just enclose your alias' 2nd parameter in '( and )', ala: alias mycmd '( set my_argv = ( \!* ); source myfile )' and you will run in a subshell. -- BURNS,JIM Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332 uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a Internet: gt0178a@prism.gatech.edu