[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] gnulib-tool: silence warning on BSD sh
From: |
Eric Blake |
Subject: |
[PATCH] gnulib-tool: silence warning on BSD sh |
Date: |
Tue, 13 Apr 2010 08:34:29 -0600 |
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 <address@hidden>
---
Pushing this, to silence:
$ ./gnulib-tool --with-tests --test getopt-posix
declare: not found
Module list with included dependencies:
...
ChangeLog | 5 +++++
gnulib-tool | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2dfb19b..a7d9b6e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-13 Eric Blake <address@hidden>
+
+ gnulib-tool: silence warning on BSD sh
+ * gnulib-tool: Avoid leaking warning about unknown 'declare'.
+
2010-04-13 Jim Meyering <address@hidden>
doc: users.txt: GNU patch now uses gnulib
diff --git a/gnulib-tool b/gnulib-tool
index d480f1e..2ec7799 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -1493,7 +1493,7 @@ sed_extract_field_header='
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
--
1.6.6.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] gnulib-tool: silence warning on BSD sh,
Eric Blake <=