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 ..
+ixz
Description: Binary data
+kw
Description: Binary data
KWS
Description: Binary data
bug.varnotnewalias
Description: Binary data
ixz.bug.varnotnewalias
Description: Binary data
ixz.bug.varnotnewalias.o
Description: application/object
