]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
maint: quote $file correctly in bootstrap.
authorGary V. Vaughan <gary@gnu.org>
Fri, 25 Nov 2011 07:39:57 +0000 (14:39 +0700)
committerGary V. Vaughan <gary@gnu.org>
Fri, 25 Nov 2011 07:53:41 +0000 (14:53 +0700)
* bootstrap (func_insert_sorted_if_absent): Don't forget the
double quotes, since we can't control the content of $file.
Reported by Steffano Lattarini.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
bootstrap

index 8776e219d9b8a657163f13f0a9f228016b6ebc9b..6ae2feb5ea87b5ceed9e44b1c29e1ff372d2933c 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -2051,13 +2051,13 @@ func_insert_sorted_if_absent ()
 
     for file
     do
-      test -f $file || touch $file
+      test -f "$file" || touch "$file"
 
       func_grep_q "$str" "$file" \
           && func_verbose "inserting \`$str' into \`$file'"
 
-      echo "$str" |sort -u - $file |func_cmp_s - $file \
-        || echo "$str" |sort -u - $file -o $file \
+      echo "$str" |sort -u - "$file" |func_cmp_s - "$file" \
+        || echo "$str" |sort -u - "$file" -o "$file" \
         || func_permissions_error "$file"
     done
 }