home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23494 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  1.7 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!spool.mu.edu!umn.edu!noc.msc.net!uc.msc.edu!raistlin!ems!ems.cdc.com!ghart
  2. From: ghart@ems.cdc.com (Geoffrey Hart)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: X-windows & aliases
  5. Message-ID: <31514@nntp_server.ems.cdc.com>
  6. Date: 8 Jan 93 22:40:39 GMT
  7. References: <1159.1189.uupcb@satalink.com> <fluet.726525307@ee.ualberta.ca>
  8. Sender: sys@ems.ems.cdc.com
  9. Reply-To: ghart@ems.cdc.com
  10. Organization: Empros Systems International, a division of CDC
  11. Lines: 23
  12. Nntp-Posting-Host: nyh4.ems.cdc.com
  13.  
  14. In article <fluet.726525307@ee.ualberta.ca>, fluet@ee.ualberta.ca (Kevin Blaine Fluet) writes:
  15. |> john.will@satalink.com (John Will)  writes:
  16. |> >Can anyone tell me how you get your aliases that appear in .profile to
  17. |> >be recognized when you're running X-Windows?  I have X running like a
  18. |> 
  19. |> Me too, please.  Not being able to type ll in an X terminal is driving me
  20. |> nuts!  Am I missing some file somewhere?  (I'm running SLS .99 with
  21. |> Xfree1.1 by the way).
  22.  
  23. It seems to me that the standard window manager or the standard X resources
  24. for Xterm try and use /bin/sh as the shell.  I changed mine to /bin/bash
  25. and everything works.  On my system, /bin/sh was a link to /bin/bash, so
  26. apparently bash was detecting it's name, and turning on only the
  27. appropriate features (aliases aren't sh).
  28.  
  29. Another note: I don't think aliases are normally exported to subshells,
  30. whereas .bashrc (or whatever's in ENV) is executed by subshells, so my rule
  31. is to put alias definitions in .bashrc.  I'm more familiar with ksh, but I
  32. think the bash behavior matches ksh in this case.  Perhaps some bash
  33. experts would expand on this?
  34.  
  35. -- 
  36.     geoff hart ghart@ems news@ems library@ems   x4273   s/ems/ems.cdc.com/
  37.