bug-bash
[Top][All Lists]
Advanced

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

Re: Exporting functions does not expand aliases in subshells


From: Oğuz
Subject: Re: Exporting functions does not expand aliases in subshells
Date: Thu, 11 Apr 2024 18:57:41 +0300

On Thursday, April 11, 2024, Kerin Millar <kfm@plushkava.net> wrote:
>
> Notwithstanding, I tried declaring the same function in an interactive
> instance of dash and found that the alias within the command substitution
> does end up being expanded, which is in stark contrast to the behaviour of
> bash.
>

Bash's behavior matches that of dash in POSIX mode. This is documented here
in the 8th item https://tiswww.case.edu/php/chet/bash/POSIX


-- 
Oğuz


reply via email to

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