Re: Having an alias and a function with the same name leads to some sort
From:
Greg Wooledge
Subject:
Re: Having an alias and a function with the same name leads to some sort of recursion
Date:
Mon, 2 Jan 2023 10:02:45 -0500
On Mon, Jan 02, 2023 at 10:13:28AM +0200, Yuri Kanivetsky wrote:
> Hi,
>
> #!/usr/bin/env bash
> set -eu
> alias cmd=echo
Aliases are not used in bash scripts, unless bash is invoked in POSIX
compatibility mode, or the "expand_aliases" shopt is turned on.