current pwd in prompt

Dave Horsfall dave at stcns3.stc.oz
Thu Feb 11 09:37:55 AEST 1988


In article <17877 at topaz.rutgers.edu> ron at 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 at stcns3.stc.OZ.AU
Alcatel-STC Australia       ARPA: dave%stcns3.stc.OZ.AU at 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



More information about the Comp.unix.wizards mailing list