mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-02-17 15:10:02 +08:00
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>
This commit is contained in:
parent
0893c48bda
commit
11d16ab06c
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user