Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!emory!iccdev!rob From: rob@iccdev.indcomp.com (Rob Rich) Newsgroups: comp.unix.questions Subject: Re: $cwd in prompt??? Message-ID: <591@iccdev.indcomp.com> Date: 20 Jun 91 15:02:13 GMT References: <693251@neabbs.UUCP> Organization: Industrial Computer Corp., Atlanta, GA Lines: 21 jerovh@neabbs.UUCP (JEROEN V.HILST) writes: >For me (csh shell) this works, (prints a command-number and the dir): >alias cd 'cd \!*; set prompt = "! `pwd`> "' >set prompt = "! `pwd`> " >best of luck. _Watch Out_ using this on an HP9000/8xx machine. If you ever accidently hit the "ENTER" key instead of the "RETURN" key (an HP block mode feature), you will create all kinds of bogus files in your current directory. It seems the "ENTER" key (block mode send), causes the prompt line to use the '>' symbol as an I/O redirection, writing to any file that you typed as a command :-( . I found this out the _hard_ way. -- Rob | Robert M. Rich, Jr. Internet: rob@iccdev.indcomp.com | Industrial Computer Corporation UUCP : ..!{emory,gatech}!iccdev!rob | 5871 Glenridge Drive, Suite 300 Voice: 404/255-8336 FAX: 404/250-0602 | Atlanta, Georgia 30328