home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / wizards / 3660 < prev    next >
Encoding:
Text File  |  1992-08-20  |  1.6 KB  |  40 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!ncar!csn!teal!bazyar
  3. From: bazyar@teal.csn.org (Jawaid Bazyar)
  4. Subject: Re: cd'ing to a dir from a process & staying there
  5. Message-ID: <bazyar.714329467@teal>
  6. Sender: news@csn.org (news)
  7. Nntp-Posting-Host: teal.csn.org
  8. Organization: Colorado SuperNet, Inc.
  9. References: <BtA89y.MCt@encore.com>
  10. Date: Thu, 20 Aug 1992 16:51:07 GMT
  11. Lines: 27
  12.  
  13. mpalmer@encore.com (Mike Palmer) writes:
  14.  
  15. >I have a ksh solution using an alias, a script & the program, but I'd like
  16. >to do it just with a program, or at least a script & program than will work
  17. >under csh & ksh.
  18.  
  19.   This solution is probably the easiest.  Unix separates process protection
  20. information on purpose, and things like this unfortunately violate that,
  21. at least in the way that micro programmers are used to.
  22.  
  23.   Under csh you can have an alias:
  24. alias ncd cd `program`
  25.  
  26.   No script required.
  27. I don't know about ksh (never used it voluntarily).
  28.  
  29.   The other thing to do would be to do some kernel work to not only handle
  30. more than one cwd (perhaps 8 or 16? They're very useful in GS/OS) but
  31. to provide specific means for children to pass changed prefixes back to
  32. their parents.  However, this starts moving Unix into the world of
  33. "Big Government/Liberal" operating systems. Hmm.
  34.  
  35. -- 
  36.  Jawaid Bazyar              |   Ask me about the GNO Multitasking Environment
  37.  Procyon, Inc.              |   for the Apple IIgs!   
  38.  bazyar@cs.uiuc.edu         |   P.O Box 620334
  39.  --Apple II Forever!--      |   Littleton, CO 80162-0334   (303) 933-4649
  40.