[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: can we remove a directory from within that directory??
From: |
Philip Rowlands |
Subject: |
Re: can we remove a directory from within that directory?? |
Date: |
Mon, 21 Nov 2005 16:33:52 +0000 (GMT) |
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