home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10474 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.4 KB

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