Re: [ping] declare -c still undocumented.

2020-11-13 Thread felix
On Fri, Nov 13, 2020 at 12:19:27AM +0100, Léa Gris wrote: > > Happy 10 years 10 months anniversary to the issue: > > > > > address@hidden:~$ declare -c moo=moo; echo $moo > > Moo cap() { local -ca _cap=("$@");

Re: [ping] declare -c still undocumented.

2020-11-13 Thread Chris Elvidge
On 13/11/2020 09:33 am, felix wrote: On Fri, Nov 13, 2020 at 12:19:27AM +0100, Léa Gris wrote: Happy 10 years 10 months anniversary to the issue: address@hidden:~$ declare -c moo=moo; echo $moo Moo cap

Re: [ping] declare -c still undocumented.

2020-11-13 Thread Léa Gris
Le 13/11/2020 à 12:47, Chris Elvidge écrivait : But ${var^} still doesn't know that it should apply to the first alpha character in a string. Similar for , and ~. If the first character of the string is a punctuation character, e.g.(, it doesn't work (as I would like it to ). Well, you are di

set -e in subshell

2020-11-13 Thread Aron Griffis
GNU bash, version 5.0.17(1)-release (x86_64-redhat-linux-gnu) $ (set -e; false; echo BANG) || echo whimper BANG $ (set -e; false; echo BANG); echo whimper whimper The || after the subshell seems to prevent set -e from being effective inside the subshell. Is this a bug or does it make sense in a

Re: set -e in subshell

2020-11-13 Thread Chet Ramey
On 11/13/20 11:15 AM, Aron Griffis wrote: > GNU bash, version 5.0.17(1)-release (x86_64-redhat-linux-gnu) > > $ (set -e; false; echo BANG) || echo whimper > BANG `set -e' doesn't have any effect on the LHS of an and-or list, and enabling it has no effect. There have been many discussions about th

Re: set -e in subshell

2020-11-13 Thread Aron Griffis
On Fri, Nov 13, 2020 at 11:31 AM Chet Ramey wrote: > `set -e' doesn't have any effect on the LHS of an and-or list, and enabling > it has no effect. There have been many discussions about this. > Thanks Chet. I knew about this generally, but somehow thought subshell would be exempt. I will adjus

Re: [ping] declare -c still undocumented.

2020-11-13 Thread Chet Ramey
On 11/12/20 6:19 PM, Léa Gris wrote: > Necroposting for still valid issue: > > declare -c to capitalize first character of string in variable is still > undocumented as of GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu) Thanks for the reminder. I keep forgetting to turn this off. It's t

Re: [ping] declare -c still undocumented.

2020-11-13 Thread L A Walsh
On 2020/11/13 09:01, Chet Ramey wrote: On 11/12/20 6:19 PM, Léa Gris wrote: declare -c to capitalize first character of string in variable Thanks for the reminder. I keep forgetting to turn this off. It's too late for bash-5.1, but I have it tagged to flip to disabled by default in con

Re: [ping] declare -c still undocumented.

2020-11-13 Thread Chet Ramey
On 11/13/20 3:50 PM, L A Walsh wrote: On 2020/11/13 09:01, Chet Ramey wrote: On 11/12/20 6:19 PM, Léa Gris wrote: declare -c to capitalize first character of string in variable Thanks for the reminder. I keep forgetting to turn this off. It's too late for bash-5.1, but I have it tagged to fli