public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Thomas Wolff <towo@towo.net>
To: cygwin@cygwin.com
Subject: Re: Bug in arguments in console
Date: Sun, 25 Sep 2016 22:15:00 -0000	[thread overview]
Message-ID: <57E84881.5020603@towo.net> (raw)
In-Reply-To: <49ff4bc2-4cbd-01e1-3194-d47dbd122607@tiscali.co.uk>

Am 25.09.2016 um 13:11 schrieb David Stacey:
> On 25/09/16 12:00, Bengt Larsson wrote:
>> C:\Users\Bengt\Desktop\src\mg2a\temp>\cygwin64\bin\echo åäö
>> åäö
>>
>> C:\Users\Bengt\Desktop\src\mg2a\temp>\cygwin64\bin\echo "åäö"
>> "åäö"
>>
>> (the quote marks are left in)
>>
>> C:\Users\Bengt\Desktop\src\mg2a\temp>ls -l
>> total 1
>> -rw-r--r-- 1 Bengt None  0 Sep  7 01:07 blah.txt
>> -rw-r--r-- 1 Bengt None 23 Sep  7 04:53 versions
>> -rw-r--r-- 1 Bengt None  0 Sep  7 11:05 åäö.txt
>>
>> C:\Users\Bengt\Desktop\src\mg2a\temp>ls *.txt
>> ls: cannot access '*.txt': No such file or directory
>
> It looks as if you're using a Windows command prompt rather than Bash. 
> Both 'problems' are actually a feature of the command prompt. Try 
> again from a Bash shell.
He's talking about an interworking issue between Windows cmd and cygwin 
(which isn't completely out of scope of cygwin);
and in fact, there has been a recent change, look for the mail thread 
"pass arguments enclosed with double quotes from bash shell to windows 
program".
In fact, with two files, one of them containing non-ASCII characters, 
like ab.txt and äö.txt, the simplified test case
C:\whatever>echo *.txt
displays this with cygwin 2.5.2:
ab.txt äö.txt
and this with cygwin 2.6.0:
*.txt

Considering that the change, as I remember, was a quite successful 
workaround for problems with quote marks, it may be considered a 
trade-off with changed bias, rather than a bug, however :)
------
Thomas

--
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

      parent reply	other threads:[~2016-09-25 21:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-25 11:11 Bengt Larsson
2016-09-25 11:31 ` David Stacey
2016-09-25 12:36   ` Bengt Larsson
2016-09-25 17:20     ` Marco Atzeri
2016-09-25 20:19     ` Andrey Repin
2016-09-25 22:15   ` Thomas Wolff [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57E84881.5020603@towo.net \
    --to=towo@towo.net \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).