[comp.unix.questions] How to redefine PROMPT to show current working directory

hooverm@sysjj.mdcbbs.com (SQUID 6 on the DARK side) (11/01/90)

I've set up an alias as shown below:

	alias cd "cd \!*; set prompt = $LOGNAME-`hostname`'${cwd}%' "

When I do a cd , I expect to see my current working directory.  This works
fine until I drop down into a subdir.  What I expect to see is my FULL path
name all the way down to the subdir like this:

	hooverm-ntscam1/home/ntscam/hoover/work%

Instead I get this, no matter where I am:

	hooverm-ntscam1/home/ntscam/hoover%

I'm sure its simple, but I can't see the woods for the trees.

			Mark <o===6