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