Re: test -v and environment variable names with subscripts

2018-07-19 Thread Grisha Levit
On Thu, Jul 19, 2018 at 2:44 PM konsolebox wrote: > On Wed, Jul 18, 2018 at 5:19 AM, Grisha Levit wrote: > > $ set -u; unset var; f() { test -v 'var[0]'; echo $?; }; var[0]=X f > > 0 > > -bash: var[0]: unbound variable > > I'm not getting this error. What version of bash are you using? Sorry ab

Re: temp env allows variables that look like array subscripts

2018-07-19 Thread Grisha Levit
On Wed, Jul 18, 2018 at 11:01 AM Chet Ramey wrote: > The question is what to do with them: > > 1. Reject them as invalid environment variable names. > > 2. Accept them as if they were valid assignment statements and create an >array variable, rejecting the second assignment because it uses an

Re: test -v and environment variable names with subscripts

2018-07-19 Thread konsolebox
On Wed, Jul 18, 2018 at 5:19 AM, Grisha Levit wrote: > $ set -u; unset var; f() { test -v 'var[0]'; echo $?; }; var[0]=X f > 0 > -bash: var[0]: unbound variable I'm not getting this error. What version of bash are you using? -- konsolebox

Re: delcare -a on a nameref in a function modifies nameref instead of target

2018-07-19 Thread Grisha Levit
On Wed, Jul 18, 2018 at 8:23 AM Greg Wooledge wrote: > FYI that one is already fixed in 5.0-alpha: > > wooledg:~$ declare -n ref=var; declare -a ref=(X); declare -p ref var > declare -n ref="var" > declare -a var=([0]="X") > wooledg:~$ f() { declare -n ref=var; declare ref=(X); declare -p ref var;

Re: Typo in german translation

2018-07-19 Thread Chet Ramey
On 7/19/18 5:57 AM, felix.ostm...@gmail.com wrote: > Bash Version: 4.4 > Patch Level: 12 > Release Status: release > > Description: > There is a typo in the german .po-file: as should be als > ./po/de.po-msgid "filename argument required" > ./po/de.po:msgstr "Ein Dateiname wird as Arg

Typo in german translation

2018-07-19 Thread felix . ostmann
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' -DPACKA

Typo in german translation

2018-07-19 Thread Felix Ostmann
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