bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is this bug in "rm"?


From: Oto Brglez
Subject: Is this bug in "rm"?
Date: Wed, 02 Jan 2008 23:42:50 +0100

Hi all!

I was deleting something today with rm and i found the folowing:

I create folder with name "folder" and i go inside of it.
# mkdir /var/folder; cd /var/folder

Then, i create some text inside of it.
# echo "test" > test.txt

And after that i use rm to delete folder inside whitch i'm in.
# rm -rf ../folder/

Now the fun part.
# pwd

It gives me the right path. But... Where am I realy? The output is:
/var/folder

And if i want to write something in this "imaginary" folder, like this:
# echo "test" > test.txt

I get this output.
bash: test.txt: No such file or directory

...
Now... Is this "bash problem", "rm problem" or "whatever problem"? :)
Have a nice day and if it's not a bug, i'm sorry for disturbing you
all...

Bye!
Zver








reply via email to

[Prev in Thread] Current Thread [Next in Thread]