Path: utzoo!mnetor!uunet!husc6!mailrus!umix!umich!mibte!gamma!ulysses!thumper!faline!bellcore!tness7!ninja!pollux!dalsqnt!rpp386!jfh
From: jfh@rpp386.UUCP (John F. Haugh II)
Newsgroups: comp.unix.questions
Subject: Re: unsetenv TERMCAP in a csh
Message-ID: <1582@rpp386.UUCP>
Date: 7 May 88 14:05:46 GMT
References: <479@cieunix.rpi.edu> <3780@csli.STANFORD.EDU>
Reply-To: jfh@rpp386.UUCP (The Beach Bum)
Organization: Big "D" Home for Wayward Hackers
Lines: 21

In article <3780@csli.STANFORD.EDU> gandalf@csli.stanford.edu (Juergen Wagner) writes:
>Aliases work much better because they are executed in the current 
>environment, whereas scripts are run in a new shell. ...and there is
>no way to change the parent's environment just bu calling a script.
>-- 
>Juergen "Gandalf" Wagner,		   gandalf@csli.stanford.edu

if you need the full function of a shell script you can alias as follows:

alias pushd 'source ~/bin/pushd.rc'

this has the advantage of being an alias, so the command runs in the
current environment, PLUS, (thanks to the source command it works)
you can have a full blown shell script.

- john.
-- 
John F. Haugh II                 | "You see, I want a lot.  Perhaps I want every
River Parishes Programming       | -thing.  The darkness that comes with every
UUCP:   ihnp4!killer!rpp386!jfh  | infinite fall and the shivering blaze of
DOMAIN: jfh@rpp386               | every step up ..." -- Rainer Maria Rilke