bug-bash
[Top][All Lists]
Advanced

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

Re: ixz.bug.1.varnotnewalias


From: Lawrence Velázquez
Subject: Re: ixz.bug.1.varnotnewalias
Date: Fri, 5 Feb 2021 14:37:50 -0500

> On Feb 5, 2021, at 12:52 PM, Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com> wrote:
> 
> bash-5.1# bash -x ixz.bug.varnotnewalias 2>&1 | gawk '/aixz=|alias --|not
> fou/'
> + aixz=("$ixzd"/+{ixz,kw})
> ++ alias -- '+ixz=
> ++ alias -- '+kw=
> ++ alias -- '+ixz=
> ++ alias -- '+kw=
> ixz.bug.varnotnewalias: line 13: KWS: command not found
> 
> here, it for some reason doesnt show the second aixz=( "$ixzd"/ ) .. but in
> manual less ing it shows :
> 
> 
> + shopt -s extglob globstar expand_aliases dotglob
> + aixz=("$ixzd"/+{ixz,kw})
> + . -- /root/ixz/+ixz
> ++ aixzi=-1
> ++ [[ -v aixz[++aixzi] ]]
> ++ aixzf=/root/ixz/+ixz
> 
> and
> ++ [[ -v aixz[++aixzi] ]]
> + alxz=("$ixzd"/)
> + . -- /root/ixz/+ixz
> ++ aixzi=-1
> ++ [[ -v aixz[++aixzi] ]]
> ++ aixzf=/root/ixz/+ixz
> 
> t looped again over the same var content it didn t sset new, but hy didnt
> the awk grep show it ...

Are you asking why this...

        gawk '/aixz=|alias --|not fou/'

...didn't find this?

        + alxz=("$ixzd"/)

Look more closely, perhaps.

vq


reply via email to

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