Date: Thu, 12 Jan 2023 10:56:33 -0500 From: Chet Ramey <chet.ra...@case.edu> Message-ID: <0f03dd45-3e1a-54b1-f884-d3fb2c1c7...@case.edu>
| Bash has never extended the `expand next word' semantics to multiple-level | alias expansion like this, and no one has missed it. Bash is unique amongst shells in this - all other shells, including all ksh variants (though I don't have ksh88 to test) do produce "bar" from that test case. Unless there's some particular reason to keep it like this, this is something that perhaps should change (and really should for posix conformance in posix mode). There's nothing in posix about the "space at the end" being only applicable to the first alias located - every alias expansion should apply that. Of course, all mention of aliases should really be removed from POSIX - aliases are even worse than "set -e". kre