kevin lyda said:
> oh i just don't understand this one. this makes no sense whatsoever.
>> here i am on a tru65 5.1 system. and i'm in zsh. i type the following:
>> tru64% pwd
> /u/kevin
> tru64% echo $PWD
> /u/kevin
> tru64% which pwd
> builtin
> tru64% sh
> tru64# pwd
> /kevin
> tru64# /usr/bin/pwd
> /kevin
> tru64# echo $PWD
> /u/kevin
> tru64# exit
> tru64% /usr/bin/pwd
> /kevin
>> at no point do i change directories. this makes no sense. and it worked
> fine up until today. why, why, why????
Maybe zsh exports $PWD, and /bin/sh doesn't set it. Hence the echo $PWD in
sh echos the $PWD set by zsh.
Is /kevin a symlink to /u/kevin?
--j.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!