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: <https://lists.gnu.org/archive/html/bug-bash/2010-02/msg00074.html> On Fri, 12 Feb 2010 09:10:07 +0100, Mikael Fridh wrote:
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H -I. -I../bash -I../bash/include
-I../bash/lib -g -O2 -Wall
uname output: Linux teheran 2.6.31-19-generic #56-Ubuntu SMP Thu Jan
28 02:39:34 UTC 2010 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu
Bash Version: 4.0
Patch Level: 33
Release Status: release
Description:
declare: usage: declare [-aAfFilrtux] [-p] [name[=value] ...]
address@hidden:~$ declare -c moo=moo; echo $moo
Moo
Repeat-By:
run declare -c
Fix:
document in bash(1), document in usage:, add to builtin help.
-- Léa Gris
OpenPGP_0x70946F168078ED52.asc
Description: application/pgp-keys
OpenPGP_signature
Description: OpenPGP digital signature
