[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug, i think? pwd --help and pwd --version don't work
From: |
Philip Rowlands |
Subject: |
Re: bug, i think? pwd --help and pwd --version don't work |
Date: |
Fri, 8 Apr 2005 09:14:23 +0100 (BST) |
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:
>
>address@hidden 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