On Mon, 21 Nov 2005, kuldeep vyas wrote:
I'm using Redhat 9 (kernel 2.4.20-8 on i686)
I logged in as k(username), then I started terminal, &
then I gave following commands:-
[snip]
k>ls /home/k/
// my_dir gone
k>pwd
/home/k/my_dir
// oops!!
It's likely here that "pwd" is the shell's builtin version, rather than
coreutils'.
Here what I see when calling /bin/pwd explicitly:
$ rmdir -v $(/bin/pwd)
rmdir: removing directory, /tmp/not-here
$ /bin/pwd
/bin/pwd: cannot get current directory: No such file or directory
I'd agree that this discrepancy between shell builtin and coreutil is
somewhat confusing.
Cheers,
Phil
_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils