Hi, Cygwin support group,

I have problem to touch a file when specify the full path. Here are some 
examples. MKS works fine


-- Filename with special characters
D:\>touch D:[EMAIL PROTECTED]&()[EMAIL PROTECTED]&()_+
) was unexpected at this time.

-- With the quote on filename
D:\>touch 
D:\usr\meta\boxster\UNITw2kMixednew\boxster_UNITw2kMixednew_0205\Tree\"[EMAIL 
PROTECTED]&()[EMAIL PROTECTED]&()_+"

touch: cannot touch `D:[EMAIL PROTECTED]&()[EMAIL PROTECTED]&()_+': No such 
file or directory

-- We can touch a file with the double quota in DOS cmd window.
D:\>touch  "D:[EMAIL PROTECTED]()[EMAIL PROTECTED]&()_+"

D:\usr\meta\boxster\boxster_UNITw2kMixednew\boxster_UNITw2kMixednew_0205\Tree>ls

[EMAIL PROTECTED]()[EMAIL PROTECTED]&()_+



--- If we put this touch command in windows batch file -- (clone.bat) file, it 
won't work.

SET 
TEST_SERVER=D:\usr\meta\boxster\UNITw2kMixednew\boxster_UNITw2kMixednew_0205\Tree
touch "[EMAIL PROTECTED]&()[EMAIL PROTECTED]&()_+"                     <== (we 
try touch without quote, same result)

--- run .bat file
D:\usr\meta\boxster\boxster_UNITw2kMixednew\boxster_UNITw2kMixednew_0205>cmd /c 
clone.bat
touch: cannot touch `D:[EMAIL PROTECTED]&()[EMAIL PROTECTED]&()_+': No such 
file or directory


Do you know why is that and how do we make it work in .bat file?

Thanks a lot for your help!

Xiaomin

EMC² 
Where Information Lives
Xiaomin Wu
Phone#: 508-305-8783
Ext: 48783
E-mail: [EMAIL PROTECTED]


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to