RE: Bug in syntax checking causes unintended running of a function

2016-04-21 Thread dnade.ext
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

Weirdness in associative array assignements

2014-10-15 Thread dnade.ext
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

RE: bash 4.3 and 4.2 trouble with associative arrays assigned by ``printf -v''

2013-11-26 Thread dnade.ext
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

RE: to - Bookmark file system locations in bash on POSIX-like systems

2013-04-10 Thread dnade.ext
-- > 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

RE: to - Bookmark file system locations in bash on POSIX-like systems

2013-04-10 Thread dnade.ext
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

RE: cond?true:false and division by 0

2011-08-11 Thread dnade.ext
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 /

cond?true:false and division by 0

2011-08-01 Thread dnade.ext
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

RE: List of keys of an associative array

2010-12-31 Thread dnade.ext
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

List of keys of an associative array

2010-12-31 Thread dnade.ext
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 ?

Re: $? in the right side of a pipe

2010-12-27 Thread dnade.ext
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

Re: $? in the right side of a pipe

2010-12-27 Thread dnade.ext
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