bug-bash
[Top][All Lists]
Advanced

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

Re: Next word of alias to alias that end with <blank> is not checked for


From: Robert Elz
Subject: Re: Next word of alias to alias that end with <blank> is not checked for alias
Date: Fri, 13 Jan 2023 01:59:55 +0700

    Date:        Thu, 12 Jan 2023 10:56:33 -0500
    From:        Chet Ramey <chet.ramey@case.edu>
    Message-ID:  <0f03dd45-3e1a-54b1-f884-d3fb2c1c75e1@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




reply via email to

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