Path: utzoo!utgpu!water!watmath!clyde!rutgers!sri-unix!quintus!sun!pitstop!sundc!seismo!uunet!munnari!otc!metro!ipso!stcns3!dave From: dave@stcns3.stc.oz (Dave Horsfall) Newsgroups: comp.unix.wizards Subject: Re: current pwd in prompt Message-ID: <233@stcns3.stc.oz> Date: 10 Feb 88 23:37:55 GMT References: <11657@brl-adm.ARPA> <17877@topaz.rutgers.edu> Reply-To: dave@stcns3.stc.oz (Dave Horsfall) Organization: STC Pty Ltd, North Sydney, AUSTRALIA Lines: 14 In article <17877@topaz.rutgers.edu> ron@topaz.rutgers.edu (Ron Natalie) writes: > >On the Korn shell (but not most Bourne shell PS1 is evaluated each time >it is printed so you can: > > PS1="`pwd` " It would be better to use PS1="\${PWD}". Although "pwd" is a built-in anyway. -- Dave Horsfall (VK2KFU) ACS: dave@stcns3.stc.OZ.AU Alcatel-STC Australia ARPA: dave%stcns3.stc.OZ.AU@uunet.UU.NET 11th Floor, 5 Blue St UUCP: {enea,hplabs,mcvax,uunet,ukc}!\ North Sydney NSW 2060 AUSTRALIA munnari!stcns3.stc.OZ.AU!dave