Re: [ping] declare -c still undocumented.

2020-11-17 Thread Robert Elz
Date:Mon, 16 Nov 2020 22:59:39 -0500 From:wor...@alum.mit.edu (Dale R. Worley) Message-ID: <87ft58ws44@hobgoblin.ariadne.com> | Although I must say, I can't recall off the top of my head what Un*x | utility best capitalizes the first letter of a string. sed wo

Re: [ping] declare -c still undocumented.

2020-11-16 Thread Dale R. Worley
I must say, having increasingly elaborate forms of variable substitution to do things like this seems like poor design. I would favor constructions like $ BAZ=$( <<<$FOO some_program args ) Although I must say, I can't recall off the top of my head what Un*x utility best capitalizes the first

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

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/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 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

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 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=("$@");

[ping] declare -c still undocumented.

2020-11-12 Thread Léa Gris
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) Happy 10 years 10 months anniversary to the issue: