This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

redirection can create nul files - Was: rm hangs on illegal filename nul


Hi Dave,

I somehow managed to create a file named nul (further investigation
pending), and now rm -rf hangs when trying to remove the directory with
this file.

Known ('doze) problem. Also occurs with filenames like aux, com1, lpt etc. The workaround is WDDTT.
No, wrong, the problem arises from cygwins new ability to create
filenames named nul.

Binary mount. Try:
$ echo hello > nul

when you do this with 1.5.10 you get a nice file named nul, 1.5.9
just ignores it. Yes, you're perfectly right, don't do it when it
hurts, but I stubled over this problem because the software I'm
compiling has (now obviously) broken build scripts, and now I have
a few undeletable files on my harddisk.

In my previous mail I said "rm -rf nul" can remove the file, no,
when you provide the complete path rm just doesn't complain/hang.

Any ideas how to remove the nul files? Really, I don't want to
format my disk because of this.

Volker

--
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]