diff options
author | Gary V. Vaughan <gary@gnu.org> | 2011-11-25 14:39:57 +0700 |
---|---|---|
committer | Gary V. Vaughan <gary@gnu.org> | 2011-11-25 14:53:41 +0700 |
commit | 11d16ab06c36948c053c507f5f9e06ff3de221c7 (patch) | |
tree | 2b0f5829a421d6d6854bfd83a5c27c7d0ba1d9d2 | |
parent | 0893c48bdaa0d1cc1bc9e434f43df14b5994ede3 (diff) | |
download | libtool-11d16ab06c36948c053c507f5f9e06ff3de221c7.tar.gz |
maint: quote $file correctly in bootstrap.
* 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>
-rwxr-xr-x | bootstrap | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 } |