| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <4B3B8786.9090506@cygwin.com> |
| Date: | Wed, 30 Dec 2009 12:01:58 -0500 |
| From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
| Reply-To: | cygwin AT cygwin DOT com |
| User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Problem with wildcard from Windows |
| References: | <bivmj55gng57ut1ei2e1in1hufms1h90ri AT 4ax DOT com> |
| In-Reply-To: | <bivmj55gng57ut1ei2e1in1hufms1h90ri@4ax.com> |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |