Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!utgpu!water!watmath!clyde!burl!codas!ufcsv!beach.cis.ufl.edu!esj
From: esj@beach.cis.ufl.edu.UUCP
Newsgroups: comp.unix.questions,comp.unix.wizards
Subject: Re: PS1 and the bourne shell...
Message-ID: <9354@ufcsv.cis.ufl.EDU>
Date: Wed, 25-Nov-87 21:53:10 EST
Article-I.D.: ufcsv.9354
Posted: Wed Nov 25 21:53:10 1987
Date-Received: Sun, 29-Nov-87 04:20:49 EST
References: <279@caus-dp.UUCP> <1311@puff.wisc.edu> <137@anumb.UUCP>
Sender: news@ufcsv.cis.ufl.EDU
Reply-To: esj@beach.cis.ufl.edu (Eric S. Johnson)
Organization: UF CIS Department
Lines: 22
Xref: utgpu comp.unix.questions:4550 comp.unix.wizards:5235

In article <137@anumb.UUCP> eao@anumb.UUCP (e.a.olson) writes:
>	no - cd is done in the shell itself.    Not the kernel.
>	Well, of course, everything interesting is done in the kernel;
>	but I think that in the sense you use it , shell is more appropriate.
>
>					eric olson
>					ihnp4!mvuxq!eao

Well, not exactly. The concept of current working directory is very 
much in the kernel of every unix system i've encountered. The shell 
uses the chdir system call to tell the kernal to change it. 

The problem is that the (standard) bourne shell evaluates something
like PS1=$CWD or PS1=`pwd` once. At the point it encounters it. What
you need to do is modify it (bourne shell) to evaluate that variable
each time it uses it. Best-o-Luck.


--
In Real Life:			UUCP: ...ihnp4!codas!ufcsv!beach.cis.ufl.edu!esj
Eric S. Johnson II              Internet: esj@beach.cis.ufl.edu
University of Florida           	  esj@ufl.edu