On Fri, Jul 1, 2022, at 4:07 AM, Vangelis Natsios wrote: > 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.
Not quite: Neither "paths" nor "non-Latin" characters are necessary, and the space seems to be added at expansion, not definition. bash-5.1$ echo "$BASH_VERSION" 5.1.16(1)-release bash-5.1$ 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= bash-5.1$ alias a1='printf "<%s>\\n" áa' bash-5.1$ a1 <áa> bash-5.1$ alias a2='printf "<%s>\\n" aá' bash-5.1$ a2 <aá > bash-5.1$ alias a1 a2 alias a1='printf "<%s>\\n" áa' alias a2='printf "<%s>\\n" aá' -- vq