some.. bug .. ?

2021-11-28 Thread Alex fxmbsw7 Ratchev
printf 'e=. ; (( $# > 1 )) && $e afile "${@:1:$# -1}"' >afile ; . afile 1 2 3 bash: : command not found 1. the cmd=. works out, no command error 2. on second+ run it shows this error, as bin/. is no command in $PATH 3. the command is not '' anyway its . 4. the first run is np, why, $e = . and t

empty nameref issue

2021-11-28 Thread Léa Gris
This is ok as here: # declare nameref without assigned value declare -n ref # use nameref as iterator for ref in foo bar baz do ref='Hello the World!' done declare -p foo bar baz although: declare -n ref leaves the ref variable in a limbo state with no value $ unset -n ref; declare -n ref

Re: some.. bug .. ?

2021-11-28 Thread Lawrence Velázquez
On Sun, Nov 28, 2021, at 4:01 AM, Alex fxmbsw7 Ratchev wrote: > printf 'e=. ; (( $# > 1 )) && $e afile "${@:1:$# -1}"' >afile ; . afile 1 2 > 3 > > bash: : command not found > > > 1. the cmd=. works out, no command error > 2. on second+ run it shows this error, as bin/. is no command in $PATH > 3.

Re: some.. bug .. ?

2021-11-28 Thread Alex fxmbsw7 Ratchev
very weird mismatches we have it seems something then, as maybe the other error too, ..i mean my codes fault cause with --norc and --noprofile this error at least doesnt show up as a side question, what could that be, .. afik i define no traps, only ps1 and prompt cmd On Sun, Nov 28, 2021, 6:30 P

Re: Unclosed quotes on heredoc mode

2021-11-28 Thread Robert Elz
Date:Sat, 27 Nov 2021 13:57:57 -0500 From:Chet Ramey Message-ID: <5217c48e-c989-a163-5673-38995e35a...@case.edu> Warning: long message follows, give yourself time to digest it. | OK, if you do end up building the devel branch, I'd be interested | in these results

Re: Unclosed quotes on heredoc mode

2021-11-28 Thread Alex fxmbsw7 Ratchev
a small comment on that /bin in PATH code.. is invalid, you need to match first non : beginning ahe not : ending end case :$PATH: would fix it On Sun, Nov 28, 2021, 20:31 Robert Elz wrote: > Date:Sat, 27 Nov 2021 13:57:57 -0500 > From:Chet Ramey > Message-ID: <5217c

Re: Unclosed quotes on heredoc mode

2021-11-28 Thread Robert Elz
Date:Sun, 28 Nov 2021 20:51:33 +0100 From:Alex fxmbsw7 Ratchev Message-ID: | a small comment on that /bin in PATH code.. is invalid, you need to match | first non : beginning ahe not : ending end | case :$PATH: would fix it If it was the slightest bit relevan

Re: Unclosed quotes on heredoc mode

2021-11-28 Thread Alex fxmbsw7 Ratchev
yea im sorry, .., .. code happily on plz On Sun, Nov 28, 2021, 21:25 Robert Elz wrote: > Date:Sun, 28 Nov 2021 20:51:33 +0100 > From:Alex fxmbsw7 Ratchev > Message-ID: nachji6-r...@mail.gmail.com> > > | a small comment on that /bin in PATH code.. is invalid, you