From: ammond@gdls.CSCTMD.COM (Joe Ammond) Subject: Re: 'pwd' in tcsh and csh Date: 11 Mar 1993 15:54:06 GMT
In some article, cheon@cs.iastate.edu (Yoonsik Cheon) writes:
>In <1993Mar9.213443.1019@organpipe.uug.arizona.edu> kkc@stat.nursing.arizona.edu (Kee Chua) writes:
>
>>Hi people,
>> I noticed that when I used 'sh' shell, I have 'pwd' working. But when I
>>switched to 'tcsh' or 'csh', I can't do a 'pwd'. What's wrong? If 'pwd' is
>>embedded in the shell and if tcsh and csh doesn't have it, where can I get
>>one?
>
>>Thanks in advance,
>>Kee Chua
>
> Put the following line in ur .tcshr or .cshrc file.....
>
> alias pwd 'echo "$cwd"'
>
> Yoonsik
>
>--
>Yoonsik Cheon, cheon@cs.iastate.edu
Well, that works well, but what about shells that don't store the current
working directory in the environment (i.e. rc). The Berzerkeley 'pwd'
program from your nearest bsd-net2 site compiles out of the box (Not
surprising, since it's only about 20 lines).
On a related note, has anyone ported the net2 Bourne shell clone? Bash is
nice as an interactive shell, but as a quick scripting language it can be
kind of overkill.
ja. Mentally Contaminated, and *DAMN* proud of it.
--
Suicidal Cyko Joe Ammond ammond@gdls.com
Unix System Administrator Computer Sciences Corporation
"your will to speak clearly/exposed too much
unsung once to often/could not rub off" -Helmet