Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!twitch!anuck!tbm
From: tbm@anuck.UUCP (t.b.merrick)
Newsgroups: comp.unix.questions
Subject: Re: PS1 to show working dir
Message-ID: <402@anuck.UUCP>
Date: Sat, 28-Nov-87 19:58:00 EST
Article-I.D.: anuck.402
Posted: Sat Nov 28 19:58:00 1987
Date-Received: Thu, 3-Dec-87 20:14:34 EST
References: <735@auscso.UUCP>
Organization: AT&T Bell Labs, Andover Ma.
Lines: 11
Summary: KSH Tutorial makes it even simpler.

> Here, (ksh on sysv.3) PS1="`pwd` !$"; export PS1  will do the trick.  
> ...
> PS1="`cat $HOME/.signature` What?? "

It seems quicker to use PS1='$PWD' ; export PS1.  You don't get the
command number tho as given above.  It seems to me that not all versions
of KSH  accept this construction.  Note, the single quotes are needed to
delay evaluation so you don't just get the directory in which the statement
is executed, instead of the target directory.

Tom Merrick ATT BTL Andover, MA.