On Thu, 7 Apr 2005, r3b3l wrote:

>Hi! I would like to know if this i encountered is really a bug or i'm i
>just doing something wrong? i'm kind off a newbie with linux, so sory
>if i ask some silly question or if i am just doing it all wrong. I am
>running mandrake linux 10.1 and the pwd --version command doesen't
>work. It just prints the following:
>
>[EMAIL PROTECTED] r3b3l]$ pwd --version
>bash: pwd: --: invalid option
>pwd: usage: pwd [-PL]

You're running the shell's built-in version of pwd, which
apparently doesn't support the --help or --version arguments. This
works for me:

$ /bin/pwd --version
pwd (GNU coreutils) 5.2.1
Written by Jim Meyering.


built-in pwd implementations can be confusing as they will in some
circumstances return a different directory to /bin/pwd, if you have cd'd
through a symlink. e.g.

$ mkdir a && ln -s a b
$ cd b
$ pwd
/tmp/b
$ /bin/pwd
/tmp/a


Cheers,
Phil


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to