Re: Misbehavior with constants and bash script

2018-11-19 Thread Quentin L'Hours
Hi Chet, On 2018-11-19 03:38 PM, Chet Ramey wrote: > When the assignment is used as an argument to `declare', it causes the > declare command to fail, but it's not a variable assignment error, so > the script simply continues as with any other failed command. I remembered this email thread about

Re: PDF documentation output not readable (3.2.6 GNU Parallel)

2018-05-10 Thread Quentin L'Hours
On 2018-05-10 02:24 PM, Greg Wooledge wrote: > Oh... well, it's not in the manual (bash(1)). It's in this > other thing called the "Bash Reference Manual", apparently at > This is the html version of the info documentation if I'm

stty not restored in trap when executing read with options

2017-07-16 Thread Quentin L'Hours
happen with read -s and -n options. Calling read without options restores stty as expected. ksh (93u+) and zsh (5.2) also restores stty as expected. Finally tested this on bash 3.2.57(1)-release and it's working as expected, stty is restored in the trap. -- Quentin L'Hours

Re: [minor] Space after last element on assoc print

2016-10-20 Thread Quentin L'Hours
On 10/20/2016 10:40 PM, Dan Douglas wrote: On Wed, Oct 19, 2016 at 11:47 PM, Quentin L'Hours Useless space after last item of a declare -p on an assoc array (indexed arrays don't print it, and neither does ksh typeset on assoc arrays). It doesn't seem to have any consequence tho

[minor] Space after last element on assoc print

2016-10-20 Thread Quentin L'Hours
capital[fr]=Paris $ declare -p capital declare -A capital=([fr]="Paris" ) Fix: Maybe just rlen-- just after looping on all elements in assoc.c -- Quentin L'Hours