GNU bug report logs -
#6194
pwd tracks logical paths through symlinks
Previous Next
Reported by: eran.shaham <at> gmail.com
Date: Fri, 14 May 2010 19:23:02 UTC
Severity: normal
Tags: wontfix
Done: Bob Proulx <bob <at> proulx.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#6194: pwd tracks logical paths through symlinks
which was filed against the coreutils package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 6194 <at> debbugs.gnu.org.
--
6194: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6194
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
eran shaham wrote:
> the remark that was on
> $ help pwd
> pwd: pwd [-LP]
> ...
> It would save other people bothering you on that subject :-)
Well, that documentation comes from 'bash' and we have no control over
it here. But 'help' is a bash command and so all of the documentation
from it is about bash. I don't think it needs more.
The coreutils man page says:
NOTE: your shell may have its own version of pwd, which usually super‐
sedes the version described here. Please refer to your shell’s docu‐
mentation for details about the options it supports.
And the info documentation says:
Because most shells have a built-in `pwd' command, using an
unadorned `pwd' in a script or interactively may get you different
functionality than that described here.
So... I think we are covered there! :-)
Closing the bug ticket.
Bob
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
from:
info pwd
one get:
`pwd' prints the fully resolved name of the current directory. That
is, all components of the printed name will be actual directory
names--*none will be symbolic links*.
When you try the following:
mkdir dirA dirB
cd dirA
ln -s ../dirB/ lnkB
cd lnkB
pwd
you get:
dirA/lnkB
where lnkB is obviously a symbolic link and not an actual directory name.
Best Regards,
Eran Shaham
[Message part 5 (text/html, inline)]
This bug report was last modified 15 years and 62 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.