This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

'%' in filenames causes problems for cygwin


Hello,

there seems to be some problem with filenames containing '%'
under Cygwin. Has anybody already noticed this? I couldn't find
it in the FAQ.

For example if I try to create a file named "test%":

~$ echo "foo bar" > test%
bash: test%: No such file or directory

Then, after I created "test%" using NTEmacs:

~$ ll tes*
-rw-r--r--   1 0        Everyone       47 Apr  1 12:52 test%
~$ ll test%
-rw-r--r--   1 0        Everyone       47 Apr  1 12:52 test%

looks OK, but:

~$ tar cvf test.tar test%
tar: Cannot add file test%: No such file or directory
tar: Error exit delayed from previous errors

and:

~$ cat test%
[main] C:\cygnus\CYGWIN~1\H-I586~1\bin\cat.exe 1092 (0) handle_exceptions: Excep
tion: STATUS_ACCESS_VIOLATION
[main] cat 1092 (0) handle_exceptions: Dumping stack trace to cat.exe.core

Now I try to remove it:

~$ rm test%

and surprisingly this seems to work:

~$ ll tes*
-rw-r--r--   1 0        Everyone    10240 Apr  1 12:56 test.tar

Isn't this kind of weird? 
Are other people getting these effekts too?

Should I send cat.exe.core?

Mike

-- 
Mike Fabian   (mike.fabian@it-mannesmann.de)
Mannesmann Datenverarbeitung 
Mathematische/Technische Systeme Verfahrenstechnik
Rehhecke 50, D-40885 Ratingen
Tel.: +49-2102 97 1763, Fax: +49-2102 97 1345






--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com