[MacPorts] #47622: bash escapes non-latin symbols when completing paths with spaces

MacPorts noreply at macports.org
Sat May 2 10:40:49 PDT 2015


#47622: bash escapes non-latin symbols when completing paths with spaces
---------------------------+--------------------------------
 Reporter:  xeron.oskom@…  |      Owner:  macports-tickets@…
     Type:  defect         |     Status:  new
 Priority:  Normal         |  Milestone:
Component:  ports          |    Version:  2.3.3
 Keywords:                 |       Port:  bash
---------------------------+--------------------------------
 Steps to reproduce:
 * Create a file or dir with at least one space in name and with some non-
 latin symbols (good example is "абвгдеёжзиклмнопрстуфчцчшщъыьэюя 1"
 because it includes whole Russian alphabet)
 * Type "ls аб" and press <TAB>

 Expected behavior: bash autocompletes a path and escapes only spaces

 Actual behavior: bash autocompletes a path but escapes most of the symbols

 I can't reproduce this using Linux and bash 4.2.37(1)-release and OS X
 bundled bash 3.2.57(1)-release.

 {{{
 ~$ touch Тест\ 1
 ~$ mkdir Тест\ 2
 ~$ ls Тест<TAB><TAB>
 ~$ ls Те\с\т\
 Тест 1  Тест 2/
 ~$ ls Те\с\т\ 1
 Тест 1
 ~$ echo $BASH_VERSION
 4.3.33(1)-release
 }}}

 {{{
 ~$ /bin/bash
 ~$ ls Тест<TAB>
 ~$ ls Тест\ 1
 Тест 1
 ~$ echo $BASH_VERSION
 3.2.57(1)-release
 }}}

 {{{
 ~$ touch "стр 1 стр 2 стр 3 абвгдеёжзиклмнопрстуфчцчшщъыьэюя"
 ~$ ls стр<TAB>
 ~$ ls \с\т\р\ 1\ \с\т\р\ 2\ \с\т\р\ 3\
 а?\?вгде\?\?жзиклмноп\р\с\т\у\ф\ч\ц\ч\ш\щ\ъ\ы\ь\э\ю\я
 стр 1 стр 2 стр 3 абвгдеёжзиклмнопрстуфчцчшщъыьэюя
 }}}

 {{{
 ~$ locale
 LANG="en_US.UTF-8"
 LC_COLLATE="en_US.UTF-8"
 LC_CTYPE="en_US.UTF-8"
 LC_MESSAGES="en_US.UTF-8"
 LC_MONETARY="en_US.UTF-8"
 LC_NUMERIC="en_US.UTF-8"
 LC_TIME="en_US.UTF-8"
 LC_ALL=
 }}}

 Linux:
 {{{
 ~# touch "стр 1 стр 2 стр 3 абвгдеёжзиклмнопрстуфчцчшщъыьэюя"
 ~# ls стр<TAB>
 ~# ls стр\ 1\ стр\ 2\ стр\ 3\ абвгдеёжзиклмнопрстуфчцчшщъыьэюя
 стр 1 стр 2 стр 3 абвгдеёжзиклмнопрстуфчцчшщъыьэюя
 ~# echo $BASH_VERSION
 4.2.37(1)-release
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/47622>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list