GNU bug report logs -
#20679
A bug of pwd
Previous Next
Reported by: 徐兴旺 <xuxingwang <at> gmail.com>
Date: Thu, 28 May 2015 04:10:04 UTC
Severity: normal
Tags: notabug
Done: Assaf Gordon <assafgordon <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 20679 <at> debbugs.gnu.org (full text, mbox):
Bernhard Voelker wrote:
> First of all, I want to mention that the invoked 'pwd' is a builtin
> in most shells, which means you have to e.g. specify the path like
> /bin/pwd to be sure to invoke the coreutils version of it.
A very, very small comment. This is all true but the wording makes it
sound somewhat like a recommendation to use /bin/pwd in order to get
the coreutils program. I don't think that was intended. I think
instead it was intended only that normally the user has called the
builtin pwd and the builtin is not coreutils and therefore nothing we
would do about it here. Reports about the builtin would go to the
shell.
One can compare the builtin by using both a plain "pwd" version and
comparing against the "/bin/pwd" coreutils version in order to test
differences between them. If they work the same then it is very
unlikely it would be a bug since they are independent implementations.
For typical scripting it would be normal to continue to use the plain
"pwd" and use the shell builtin version. But proper shell quoting is
still needed. :-)
Bob
This bug report was last modified 6 years and 267 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.