[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: [PATCH] maint: quote $file correctly in bootstrap.
From: |
Gary V. Vaughan |
Subject: |
FYI: [PATCH] maint: quote $file correctly in bootstrap. |
Date: |
Fri, 25 Nov 2011 15:49:23 +0700 |
From: "Gary V. Vaughan" <address@hidden>
Applied as obvious.
* 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 <address@hidden>
---
bootstrap | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/bootstrap b/bootstrap
index 8776e21..6ae2feb 100755
--- 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
}
--
1.7.7.4
Cheers,
--
Gary V. Vaughan (gary AT gnu DOT org)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: [PATCH] maint: quote $file correctly in bootstrap.,
Gary V. Vaughan <=