bug-bash
[Top][All Lists]
Advanced

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

ixz.bug.1.varnotnewalias


From: Alex fxmbsw7 Ratchev
Subject: ixz.bug.1.varnotnewalias
Date: Fri, 5 Feb 2021 18:52:14 +0100

so first bug: running arr=( 1 2 ) \n . src/to/alias_add
then \n var=( 3 ) \n alias_made_by_the_alias_add

( in another post its the same withotu using the alias directly but simply
. file again, var doesnt get new )
i did also, on another post, simply do var=( path/nonrexist ) and in set -x
its in the var=( .. ) -x showing but in content listing its still 1 2
nothing with nonexisting text

and in the 3 the arr content is still 1 2

watch out in the .o bash -x output for 'alias -- <alias>=\n. file\n' for
matches of what it goes thru when you dont wanna check up the code far

thank you /try

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 ...

so please help ..

Attachment: +ixz
Description: Binary data

Attachment: +kw
Description: Binary data

Attachment: KWS
Description: Binary data

Attachment: bug.varnotnewalias
Description: Binary data

Attachment: ixz.bug.varnotnewalias
Description: Binary data

Attachment: ixz.bug.varnotnewalias.o
Description: application/object


reply via email to

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