bug-coreutils
[Top][All Lists]
Advanced

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

Re: REMOVING THE DIRECTORY IN WHICH YOU ARE(REDHAT LINUX 9)


From: Bob Proulx
Subject: Re: REMOVING THE DIRECTORY IN WHICH YOU ARE(REDHAT LINUX 9)
Date: Sat, 7 Apr 2007 09:49:57 -0600
User-agent: Mutt/1.5.9i

rohit sharma wrote:
[...behavior case similar to this trimmed out because your mail was
apparently word wrapped strangely and the wrapped result was hard to
read...]

  mkdir 1
  cd 1
  rmdir $PWD

> #rmdir
> /root/red/1                                                         /*
> remove the directory 1 (it gives no error) */

Yes.  The directory was removed without error.

> #cat >
> a                                                                      /*
> make a file a */
> -bash: no such file or directory
> (error)

Yes.  The directory has been removed and does not exist to create the
new files there.  This is expected after removing the directory.

> #cd ..
> #ls
> 
> 2
> (shows only directory 2) (directory 1 gets removed)

Correct.  The directory was removed.

Bob




reply via email to

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