Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 exptools; site whuxl.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!mike From: mike@whuxl.UUCP (BALDWIN) Newsgroups: net.unix-wizards Subject: Re: PS1 change (ksh) Message-ID: <530@whuxl.UUCP> Date: Thu, 21-Mar-85 02:04:47 EST Article-I.D.: whuxl.530 Posted: Thu Mar 21 02:04:47 1985 Date-Received: Fri, 22-Mar-85 01:19:32 EST References: <245@rruxe.UUCP> <1308@amdahl.UUCP> Organization: /usr/exptools/lib/netnews/myorg Lines: 17 If you want the cwd in the prompt, just make a new function called, say, ch: ch() { if cd $1 then PS1="[`pwd`] " fi } This will work in SVR2 sh as well as ksh. I see no reason why the shell has to be modified at all. We don't need to add any extra baggage to the shell. For instance, why is there $PWD in ksh and $cwd in csh? Doesn't `pwd` do the same without adding another funny variable to the shell? Michael Baldwin AT&T Bell Labs harpo!whuxl!mike