summaryrefslogtreecommitdiff
path: root/gnulib-tool
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2010-01-17 01:07:00 +0100
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2010-01-17 08:37:54 +0100
commit3b1d015225dd896c76cac5318db7982944aea238 (patch)
tree028b878358e3ee78413e239c7905d97468066723 /gnulib-tool
parenta386c04cbe287bf0fae777e83347de6ac1988c59 (diff)
downloadgnulib-3b1d015225dd896c76cac5318db7982944aea238.tar.gz
gnulib-tool: fix filelist for AIX, HP-UX ksh.
* gnulib-tool (func_filter_filelist): Do not quote possibly-empty variables in shell case patterns, for AIX and HP-UX ksh. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'gnulib-tool')
-rwxr-xr-xgnulib-tool7
1 files changed, 5 insertions, 2 deletions
diff --git a/gnulib-tool b/gnulib-tool
index 96578ee5f3..ce1bbe949b 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -1428,6 +1428,7 @@ func_get_filelist ()
# elements starting with prefix and ending with suffix are considered.
# Processing: removed_prefix and removed_suffix are removed from each element,
# added_prefix and added_suffix are added to each element.
+# prefix, suffix should not contain shell-special characters.
# removed_prefix, removed_suffix should not contain the characters "$`\{}[]^|.
# added_prefix, added_suffix should not contain the characters \|&.
func_filter_filelist ()
@@ -1439,8 +1440,10 @@ func_filter_filelist ()
}; then
ffflist=
for fff in $3; do
+ # Do not quote possibly-empty parameters in case patterns,
+ # AIX and HP-UX ksh won't match them if they are empty.
case "$fff" in
- "$4"*"$5")
+ $4*$5)
if test -n "$6"; then
func_remove_prefix fff "$6"
fi
@@ -1460,7 +1463,7 @@ func_filter_filelist ()
sed_fff_filter="s|^$6\(.*\)$7\$|$8\\1$9|"
ffflist=`for fff in $3; do
case "$fff" in
- "$4"*"$5") echo "$fff" ;;
+ $4*$5) echo "$fff" ;;
esac
done | sed -e "$sed_fff_filter"`
fi