On Thu, Aug 17, 2000 at 04:28:19PM +1200, Greg Ewing wrote: > given platform -- e.g Unix doesn't care whether there's a > trailing slash on a pathname. Bzzzt. This is unfortunately not true. Observe: daemon2:~/python > mkdir perl daemon2:~/python > rm perl/ rm: perl/: is a directory daemon2:~/python > rmdir perl/ rmdir: perl/: Is a directory daemon2:~/python > rm -rf perl/ rm: perl/: Is a directory daemon2:~/python > su # rmdir perl/ rmdir: perl/: Is a directory # rm -rf perl/ rm: perl/: Is a directory # ^D daemon2:~/python > rmdir perl daemon2:~/python > Note that the trailing slash is added by all tab-completing shells that I know. And the problem *really* is that trailing slash, I shit you not. Needless to say, every one of us ran into this at one time or another, and spent an hour figuring out *why* the rmdir wouldn't remove a directory. Consequently, I'm all for removing trailing slashes, but not enough to break existing code. I wonder howmuch breakage there really is, though. -- Thomas Wouters <thomas@xs4all.net> Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4