Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/bash-Smvct5/bash-5.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wno-parentheses -Wno-format-security uname output: Linux peachville 5.13.0-51-generic #58~20.04.1-Ubuntu SMP Tue Jun 14 11:29:12 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu
Bash Version: 5.0 Patch Level: 17 Release Status: release Description: When creating an alias containing a path ending with a non-latin (e.g. greek) directory name, a space character is appended to the end of the path, causing the alias to fail. This does not happen when the non-latin part is in the middle and not the end of the path. This behaviour is new to bash v.5.0, worked as expected in v.4.X. Repeat-By: Command line: vnatsios@peachville:~$ mkdir $HOME/αβγ vnatsios@peachville:~$ mkdir $HOME/αβγ/abc vnatsios@peachville:~$ alias lstest1='ls -l $HOME/αβγ' vnatsios@peachville:~$ alias lstest2='ls -l $HOME/αβγ/abc' vnatsios@peachville:~$ lstest1 ls: cannot access '/home/vnatsios/αβγ ': No such file or directory vnatsios@peachville:~$ lstest2 total 0 Shell script: #!/bin/bash shopt -s expand_aliases rm -rf $HOME/αβγ mkdir $HOME/αβγ mkdir $HOME/αβγ/abc alias lstest1='ls -l $HOME/αβγ' alias lstest2='ls -l $HOME/αβγ/abc' lstest1 lstest2