Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.questions Subject: Re: Prompt for ksh Message-ID: <1989Oct25.010732.1367@virtech.uucp> Date: 25 Oct 89 01:07:32 GMT References: <3028@jhunix.HCF.JHU.EDU> Organization: Virtual Technologies Inc. Lines: 14 In article <3028@jhunix.HCF.JHU.EDU>, liu@jhunix.HCF.JHU.EDU (Xuyong Liu) writes: > alias cd='cd $1; PS1="$PWD: " How about: PS1="\$PWD: " PS1 is re-parsed prior to each use, so the \$ will cause the PWD variable to be expanded at run time, as opposed to definition time. -- +-----------------------------------------------------------------------+ | Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 ! | Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 | +-----------------------------------------------------------------------+