home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ulowell!m2c!jjmhome!alden!alden.UUCP
- From: sgr@alden.UUCP (Stan Ryckman)
- Newsgroups: comp.unix.questions
- Subject: Re: how come : ! out of vi always uses sh instead of $SHELL ???
- Message-ID: <561@alden.UUCP>
- Date: 28 Aug 92 15:11:05 GMT
- References: <fish.714853851@news2.gsfc.nasa.gov> <857@hq.dla.mil> <1992Aug27.232756.17980@pbhya.PacBell.COM>
- Sender: usenet@alden.UUCP
- Organization: Alden Electronics, Westboro, MA
- Lines: 25
-
- In article <1992Aug27.232756.17980@pbhya.PacBell.COM> dbsuthe@PacBell.COM (Daniel B. Suthers) writes:
- >Now, to address the complaint: Aliases are lost because aliases are not
- >passed to child processes. This applies to Bourne and KSH. I don't
- >know about CSH.
-
- It's true for csh and tcsh too.
-
- >My solution is to have all of my aliased commands backed up as shell
- >commands. This allows a reasonable environment whether in a subshell or
- >not.
-
- AAACK!
-
- Much simpler (for {,t}csh anyway): put aliases in ~/.{,t}cshrc, which
- is executed upon startup of each subshell. If you have them in your
- .login, they will not take effect when you run a subshell (including
- scripts).
-
- By the way, if you use csh scripts (ugh! no flames please), start
- each with "unalias *" so that any commands in it will do what
- is expected, and not what some user's alias does.
- --
- One little, two little, three little Endians
- Four little, five little, six little Endians...
- Stan Ryckman sgr@alden.UUCP
-