Thanks for all the help and suggestions... I hopefully solved the problem now.

There were 2 issues -
one was that bash comes with it's own pwd command
the other was that the coreutils pwd must have been corrupt somehow

After reinstalling coreutils, it appears to work correctly when explicitly 
called from the command line and no more Invalid argument messages :-)

Martin


On February 9, 2006 13:53, Martin Glazer wrote:
> Hey,
>
> I'm using a gentoo system and it is failing during an update, however the
> problem exists at the command line. pwd appears to work when one just types
> it in, but if giving the full pathname to pwd, it fails.
>
> ~ # pwd
> /root
> ~ # /bin/pwd
> /bin/pwd: cannot get current directory: Invalid argument
> ~ # which pwd
> /usr/bin/pwd
> ~ # /usr/bin/pwd
> /usr/bin/pwd: cannot get current directory: Invalid argument
> ~ # ll /usr/bin/pwd
> lrwxrwxrwx  1 root root 8 Feb  7 16:25 /usr/bin/pwd -> /bin/pwd
> ~ # ll /bin/pwd
> -rwxr-xr-x  1 root root 13700 Feb  7 16:25 /bin/pwd
>
> Any ideas?
>
> Martin
>
> _______________________________________________
> clug-talk mailing list
> [email protected]
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to