Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!aurora!labrea!agate!ucbvax!ulysses!cjc From: cjc@ulysses.homer.nj.att.com (Chris Calabrese[rs]) Newsgroups: comp.unix.wizards Subject: Re: current pwd in prompt Message-ID: <10027@ulysses.homer.nj.att.com> Date: 9 Feb 88 13:49:40 GMT References: <11657@brl-adm.ARPA> <17877@topaz.rutgers.edu> Organization: AT&T Bell Laboratories, Murray Hill Lines: 19 Summary: don't have to run the pwd program In article <17877@topaz.rutgers.edu>, ron@topaz.rutgers.edu.UUCP writes: > [...] > > On the Korn shell (but not most Bourne shell PS1 is evaluated each time > it is printed so you can: > > PS1="`pwd` " > > -Ron The Korn shell also has an internal variable which keeps track of the current directory, thus PS1=$PWD works just as well, only a zillion times faster. Chris Calabrese AT&T Bell Labs ulysses!cjc