On 10:38 06 Jun 2003, Jeffrey Pleau <[EMAIL PROTECTED]> wrote:
| I am a relative newbie to Linux/Unix adn am having an issue with symlinks.
| I have a system where there are files and directories in user's home
| directories that are symlinked to a mounted filesystem (read only).  the
| problem is this:
| 
| If user 'Tom' navigates to /home/tom/symlinkdir/thisplace   - where
| symlinkdir is linked to /mnt/mountedserver
| 
| and issues a pwd, the returned value is
| 
| /mnt/mountedserver/thisplace (the absolute path)
| 
| If the user issues an echo $cwd command, the path
| /home/tom/symlinkdir/thisplace is returned (the relative path)
| 
| How can I set up RedHat Linux AS2.1 to show the relative path for pwd
| without aliasing it to 'echo $cwd'?

You can't.

Pwd tells the truth.
$cwd is a lie concocted by the shell to make you feel good. Or to confuse
you. Pick your own interpretation.

Cheers,
-- 
Cameron Simpson <[EMAIL PROTECTED]> DoD#743
http://www.cskk.ezoshosting.com/cs/

Any sufficiently advanced bug is indistinguishable from a feature.
- Rich Kulawiec
Any sufficiently advanced feature is indistinguishable from a bug.
- Greg Alexander's corollary <[EMAIL PROTECTED]>


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to