[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alias appends space character to end of non-latin string

From: Chet Ramey
Subject: Re: Alias appends space character to end of non-latin string
Date: Thu, 7 Jul 2022 10:29:22 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

On 7/1/22 4:07 AM, Vangelis Natsios wrote:

Bash Version: 5.0
Patch Level: 17
Release Status: release


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

Thanks for the report. As Lawrence said, it's simpler than that. If the
alias ends in a multibyte character, it interferes with the sentinel the
parser adds to the end of the alias expansion to prevent potential
recursive expansion. This will be fixed in the next release candidate,
and in the devel branch.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]