Date:Tue, 7 Feb 2023 14:35:54 -0500
From:Chet Ramey
Message-ID:
| On 2/7/23 12:33 PM, Dale R. Worley wrote: (That was 7 Feb, not 2 July...)
| > That makes it clear why the second case behaves as it does. But my
| > reading of the definition of "simple command
On 2/7/23 12:33 PM, Dale R. Worley wrote:
ALIASES
Aliases allow a string to be substituted for a word when it is used as
the first word of a simple command.
That makes it clear why the second case behaves as it does. But my
reading of the definition of "simple commands" i
Robert Elz writes:
> | Aliases are not used in bash scripts, unless bash is invoked in POSIX
> | compatibility mode, or the "expand_aliases" shopt is turned on.
>
> I think that's what must have happened ... the infinite loop of
> echo commands suggests that the function definition
>
> c
Before this patch, if allexport was set, $_ gained the "x" attribute
after PROMPT_COMMAND finished running, that would only get removed after
the next simple command is executed.
$ PROMPT_COMMAND=:
$ : foo
$ declare -p _
declare -- _="foo"
$ set -a
$ : bar
$ declare -p _
declare -x