D
--
Damien Nadé
Astek Sud-Est pour Orange/OF/DTSI/DSI/DSI DFY/HBX/GOT
From: bug-bash [mailto:bug-bash-bounces+dnade.ext=orange@gnu.org] On Behalf
Of David Maas
Sent: lundi 18 avril 2016 21:52
To: bug-bash@gnu.org
Subject: Bug in syntax checking causes unintended running of a fun
Hello dear bash-bug mailing-list!
I am puzzled by bash behavior with array assignments.
It seems there is a behavior change introduced in bash 4.3 in array
assignments. An array can actually reference itself in its own declaration.
$ declare -A foo=([bar]=1st) ; foo=([bar]=2nd [qwer
O
Sophia Antipolis - France / Tel : 04 97 46 28 74
> -Message d'origine-
> De : bug-bash-bounces+dnade.ext=orange@gnu.org [mailto:bug-bash-
> bounces+dnade.ext=orange@gnu.org] De la part de NBaH
> Envoyé : jeudi 21 novembre 2013 19:04
> À : bug-bash@gnu.org
> Objet : b
--
> De : bug-bash-bounces+dnade.ext=orange@gnu.org [mailto:bug-bash-
> bounces+dnade.ext=orange@gnu.org] De la part de Roman Rakus
> Envoyé : mercredi 10 avril 2013 15:42
> À : bug-bash@gnu.org
> Objet : Re: to - Bookmark file system locations in bash on POSIX-like
> syste
uot; for review, comments, and increase my own small user community.
Regards,
D
--
Damien Nadé
Astek Sud-Est pour France Télécom - FT/OF/OFA/DMGP/PORTAIL/DOP/DEV/EAQS
Sophia Antipolis - France / Tel : 04 97 46 28 74
> -Message d'origine-
> De : bug-bash-bounces+dn
Hello
Sorry for the delay.
I've applied your expr-noeval.patch file to the bash-4.2.10-4.fc15 package
provided by fedora.
The problem seems solved. :)
Thanks !
D
--
Damien Nadé
Astek Sud-Est pour France Télécom - FT/OF/OFA/DMGP/PORTAIL/DOP/DEV/EAQS
Sophia Antipolis - France /
Hello
I wanted to check a variable before attempting to divide something by it, so I
wrote :
echo $(( foo==0?0:something/foo ))
And bash 2, 3 and up to 4.2.10 version sent me a "division by 0" error.
So, I've tested a static version of the statement :
$ echo $(( 0==0?0:1/0 ))
-bash: 0
Ha. Indeed, if i use declare –A, it works.
But why is bash letting me use foo[bar]=something in the first place, if I
don’t declare foo as an associative array ?
Maybe the bug’s here.
D
--
Damien Nadé
Astek Sud-Est pour France Télécom - FT/TGPF/OPF/PORTAIL/DOP/DEV/EAQS
Sophia A
Hello
For regular arrays, we can get the list of keys by using the form
${!some_arr...@]}.
But this just doesn’t work for associative arrays.
${!some_associative_arr...@]} is actually 0. Is that a bug ?
Is there another way to get the list of keys available in an associative array ?
Hello
More information on that topic :
false ; false | echo $? stills prints 0.
false ; (false) | echo $? prints 1
So.. ? $? in the right side of a pipe is randomly the exit status of the left
side depending of the way you write it ? Doesn’t sound sane.
Doesn’t that break POSIX anyway
Hello
More information on that topic :
false ; false | echo $? stills prints 0.
false ; (false) | echo $? prints 1
So.. ? $? in the right side of a pipe is randomly the exit status of the left
side depending of the way you write it ? Doesn’t sound sane.
Doesn’t that break POSIX anyway
11 matches
Mail list logo