[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wildcard expansion can fail with nonprinting characters
From: |
Stephane Chazelas |
Subject: |
Re: Wildcard expansion can fail with nonprinting characters |
Date: |
Sat, 28 Sep 2019 07:07:37 +0100 |
User-agent: |
NeoMutt/20171215 |
2019-09-27 16:52:50 -0700, Geoff Kuenning:
[...]
> $ mkdir /tmp/test$'\361'dir
> $ touch /tmp/test�dir/foo
> $ ls /tmp/test�dir/f*
> /tmp/test?dir/foo
> $ x=/tmp/test�dir
> $ echo "$x" | cat -v
> /tmp/testM-qdir
> $ ls "$x"/f*
> ls: cannot access '/tmp/test'$'\361''dir/f*': No such file or directory
[...]
I can reproduce on Ubuntu 18.04 with bash 4.4 in UTF-8 locales
and some other but not all multi-byte character locales
(ja_JP.eucjp, but not zh_CN.gb18030 for instance).
I can't reproduce in 5.0.10. Presumably, the issue has been
fixed already.
--
Stephane