$cwd in prompt???

Rob Rich rob at iccdev.indcomp.com
Fri Jun 21 01:02:13 AEST 1991


jerovh at 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 at 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



More information about the Comp.unix.questions mailing list