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: Kerin Millar
Subject: Re: Exporting functions does not expand aliases in subshells
Date: Thu, 11 Apr 2024 17:11:47 +0100
User-agent: Cyrus-JMAP/3.11.0-alpha0-379-gabd37849b7-fm-20240408.001-gabd37849

On Thu, 11 Apr 2024, at 4:57 PM, Oğuz wrote:
> 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

Thank you. I thought that I had tested the posix mode properly before posting 
but I had not.

-- 
Kerin Millar



reply via email to

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