* Bug in arguments in console
@ 2016-09-25 11:11 Bengt Larsson
2016-09-25 11:31 ` David Stacey
0 siblings, 1 reply; 6+ messages in thread
From: Bengt Larsson @ 2016-09-25 11:11 UTC (permalink / raw)
To: cygwin
There is a bug with arguments in the console since 2.6.0.
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
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug in arguments in console
2016-09-25 11:11 Bug in arguments in console Bengt Larsson
@ 2016-09-25 11:31 ` David Stacey
2016-09-25 12:36 ` Bengt Larsson
2016-09-25 22:15 ` Thomas Wolff
0 siblings, 2 replies; 6+ messages in thread
From: David Stacey @ 2016-09-25 11:31 UTC (permalink / raw)
To: cygwin
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.
Dave.
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug in arguments in console
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
1 sibling, 2 replies; 6+ messages in thread
From: Bengt Larsson @ 2016-09-25 12:36 UTC (permalink / raw)
To: cygwin
David Stacey wrote:
>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.
No they're not. It worked in 2.5.2.
>Try again
>from a Bash shell.
The arrogance of it.
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug in arguments in console
2016-09-25 12:36 ` Bengt Larsson
@ 2016-09-25 17:20 ` Marco Atzeri
2016-09-25 20:19 ` Andrey Repin
1 sibling, 0 replies; 6+ messages in thread
From: Marco Atzeri @ 2016-09-25 17:20 UTC (permalink / raw)
To: cygwin
On 25/09/2016 13:31, Bengt Larsson wrote:
> David Stacey wrote:
>> 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.
>
> No they're not. It worked in 2.5.2.
>
>> Try again
>>from a Bash shell.
>
> The arrogance of it.
>
Hi Bengt,
your answer is for me puzzling. What do you mean ?
I see no problem on bash, for both case with mintty and with
windows console; but I have not understood what are you using
for your test.
$ uname -srm
CYGWIN_NT-6.1 2.6.0(0.304/5/3) x86_64
$ ls -l
total 0
-rw-r--r-- 1 marco Administrators 0 Sep 25 18:43 ÜÖÄöäpß.txt
$ ls *.txt
ÜÖÄöäpß.txt
I have also no problem on echo, also for both (mintty and console)
$ echo ÖÄöäüß
ÖÄöäüß
Regards
Marco
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug in arguments in console
2016-09-25 12:36 ` Bengt Larsson
2016-09-25 17:20 ` Marco Atzeri
@ 2016-09-25 20:19 ` Andrey Repin
1 sibling, 0 replies; 6+ messages in thread
From: Andrey Repin @ 2016-09-25 20:19 UTC (permalink / raw)
To: Bengt Larsson, cygwin
Greetings, Bengt Larsson!
> David Stacey wrote:
>>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.
> No they're not. It worked in 2.5.2.
As David said, this is a "feature" of a Windows CMD shell.
>>Try again
>>from a Bash shell.
> The arrogance of it.
...is yours.
--
With best regards,
Andrey Repin
Sunday, September 25, 2016 20:06:39
Sorry for my terrible english...
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug in arguments in console
2016-09-25 11:31 ` David Stacey
2016-09-25 12:36 ` Bengt Larsson
@ 2016-09-25 22:15 ` Thomas Wolff
1 sibling, 0 replies; 6+ messages in thread
From: Thomas Wolff @ 2016-09-25 22:15 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-09-25 21:58 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-25 11:11 Bug in arguments in console 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 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).