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]

Re: Problem with wildcard from Windows


On 12/30/2009 11:36 AM, Bengt Larsson wrote:
I seem to have a problem with wildcards from the Windows command line
when there are high-bit characters in a filename.

A directory contains only the two files "user" and "anvÃndare"
("anvÃndare" being user in Swedish):

   C:\Documents and Settings\Bengt2\Desktop\test\ttt>ls -l
   total 0
   -rw-r--r-- 1 Bengt2 Users 0 2009-12-30 02:23 anvÃndare
   -rw-r--r-- 1 Bengt2 Users 0 2009-12-30 02:23 user

   C:\Documents and Settings\Bengt2\Desktop\test\ttt>ls u*
   user

   C:\Documents and Settings\Bengt2\Desktop\test\ttt>ls a*
   ls: cannot access a*: No such file or directory

   C:\Documents and Settings\Bengt2\Desktop\test\ttt>ls *
   ls: cannot access *: No such file or directory

It works in bash and dash:

   C:\Documents and Settings\Bengt2\Desktop\test\ttt>bash
   /users/Bengt2/Desktop/test/ttt: ls u*
   user
   /users/Bengt2/Desktop/test/ttt: ls a*
   anvÃndare
   /users/Bengt2/Desktop/test/ttt: ls *
   anvÃndare  user

I have LANG and CYGWIN set, but not having them set doesn't change the
outcome.

Try "noglob" if your shell is not Cygwin-aware.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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


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