Installation of OTHER_DOCS ignores DESTDIR (patch enclosed)
--- Makefile.in 2013-08-22 06:17:13.342109373 +0100 +++ Makefile.in 2013-08-22 06:17:54.082108946 +0100 @@ -766,7 +766,7 @@ install: .made installdirs $(INSTALL_PROGRAM) $(INSTALLMODE) $(Program) $(DESTDIR)$(bindir)/$(Program) $(INSTALL_SCRIPT) $(INSTALLMODE2) bashbug $(DESTDIR)$(bindir)/bashbug - $(INSTALL_DATA) $(OTHER_DOCS) $(docdir) + $(INSTALL_DATA) $(OTHER_DOCS) $(DESTDIR)$(docdir) -( cd $(DOCDIR) ; $(MAKE) $(MFLAGS) \ man1dir=$(man1dir) man1ext=$(man1ext) \ man3dir=$(man3dir) man3ext=$(man3ext) \
'declare +a -g' destroys local arrays
I use bash 4.2.45. `man bash` says: "Using `+' instead of `-' turns off the attribute instead, with the exceptions that +a may not be used to destroy an array variable and +r will not remove the readonly attribute." However 'declare +a -g' destroys local arrays, which do not shadow global arrays: $ f() { local ARRAY=(a b c); declare -p ARRAY; declare +a -g ARRAY; declare -p ARRAY; } $ f declare -a ARRAY='([0]="a" [1]="b" [2]="c")' bash: declare: ARRAY: cannot destroy array variables in this way bash: declare: ARRAY: not found $ ARRAY=(x y z) $ f declare -a ARRAY='([0]="a" [1]="b" [2]="c")' bash: declare: ARRAY: cannot destroy array variables in this way declare -a ARRAY='([0]="a" [1]="b" [2]="c")' -- Arfrever Frehtes Taifersar Arahesis signature.asc Description: This is a digitally signed message part.