Mercurial > hg > octave-nkf > gnulib-hg
changeset 13223:d8fa281b2a00
gnulib-tool: silence warning on BSD sh
FreeBSD /bin/sh issues warnings about commands not found prior
to redirecting stderr.
* gnulib-tool: Avoid leaking warning about unknown 'declare'.
Signed-off-by: Eric Blake <eblake@redhat.com>
author | Eric Blake <eblake@redhat.com> |
---|---|
date | Mon, 12 Apr 2010 17:03:08 -0600 |
parents | 1fc79b2eb8e2 |
children | c22e829c94e8 |
files | ChangeLog gnulib-tool |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-04-13 Eric Blake <eblake@redhat.com> + + gnulib-tool: silence warning on BSD sh + * gnulib-tool: Avoid leaking warning about unknown 'declare'. + 2010-04-13 Jim Meyering <meyering@redhat.com> doc: users.txt: GNU patch now uses gnulib
--- a/gnulib-tool +++ b/gnulib-tool @@ -1493,7 +1493,7 @@ if $modcache; then # Note: The 'eval' silences stderr output in dash. - if declare -A x 2>/dev/null && { x[f/2]='foo'; x[f/3]='bar'; eval test '${x[f/2]}' = foo; }; then + if (declare -A x && { x[f/2]='foo'; x[f/3]='bar'; eval test '${x[f/2]}' = foo; }) 2>/dev/null; then # Zsh 4 and Bash 4 have associative arrays. have_associative=true else