bug-coreutils
[Top][All Lists]
Advanced

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

bug#19051: rm symboliclink/ # "Is a directory"


From: aaron brick
Subject: bug#19051: rm symboliclink/ # "Is a directory"
Date: Thu, 13 Nov 2014 22:53:09 -0800

hi folks,

$ ln -s / sl
$ rm sl/
rm: cannot remove `sl/': Is a directory
$ rm sl
$

the presence of the slash is not such a great way to test for whether
or not a file is a directory. you may find the above example
contrived, but it occurs easily because bash's default tab completion
for symlinks to directories adds the trailing slash. this confused the
hell out of one of my students.

thanks for your hard work!
aaron brick.





reply via email to

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