Re: [bug-bash] $RANDOM not Cryptographically secure pseudorandom number generator

2019-01-15 Thread Quentin
to clean up my code: C is a language I code once every 5 years or so). (So while I'm at it: `chachastate` keeps switching types and is sometimes a global, sometimes a local variable. That's confusing.) /OIe Cheers, Quentin

Re: [bug-bash] $RANDOM not Cryptographically secure pseudorandom number generator

2019-01-21 Thread Quentin
tus=none | tr -d -c A-Za-z0-9 Then truncate to whatever length you need, or repeat if more characters are needed. Cheers, Quentin

Re: Bug on function.

2015-12-08 Thread Quentin
hing special happens on param 18 since $18 expands as expected to "$1"8 = "echo8" inside the function (and that command does not exist, at least on my system). Please provide your output to that script (not run as root so as not to make the system reboot) if it's different from what I describe above. Regards, Quentin

Re: Bug on function.

2015-12-08 Thread Quentin
ot;15th: $15" echo "16th: $16" echo "17th: $17" $18 echo "19th: $19" echo "20th: $20" } echo "Before Passing Thru Function: $*" Gateway $* Hi, I think you should read the "Special Parameters" and "Parameter Expansion" sections of the Bash man page. Specifically: * $* does not expand parameters as separate words (as "$@" does) * positional parameters with more than 1 digit require braces: "${11}" Cheers, Quentin

Extra '-i' file in Bash repo

2014-07-31 Thread Quentin Minster
it in case it's the latter. Regards, Quentin

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: PDF documentation output not readable (3.2.6 GNU Parallel)

2018-05-10 Thread Quentin L'Hours
on of the info documentation if I'm not mistaken, You can see it from your terminal with: info bash 'Basic Shell Features' 'Shell Commands' 'GNU Parallel' -- Quentin

Re: Misbehavior with constants and bash script

2018-11-19 Thread Quentin L'Hours
ment errors)? It feels like POSIX progressively wants declaration builtins to have the same rules as basic assignments, why should assignment error stay different? -- Quentin

[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

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