running scripts within the current c-shell
Mike Coleman
mkc+dated+1017030914.9248c5 at mathdogs.com
Sat Feb 23 04:31:16 CST 2002
Marvin Bellamy <Marvin.Bellamy at innovision.com> writes:
> I'd asked a question about doing this a while back, but never got a response
> (assuming no one knew how). Say, for instance, you'd like to run a script to
> set up your java environment. If you just run a script, you lose your
> variable settings after the script dies. To run a script "within" your
> current login shell:
>
> bin/csh: source yourscript.csh
For what it's worth, the equivalent under bash, which I *highly* recommend
over csh, would be
. yourscript.sh
Mike
More information about the Kclug
mailing list