From: Gary V. Vaughan Date: Fri, 25 Nov 2011 07:39:57 +0000 (+0700) Subject: maint: quote $file correctly in bootstrap. X-Git-Tag: v2.4.2.418~230 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11d16ab06c36948c053c507f5f9e06ff3de221c7;p=thirdparty%2Flibtool.git 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 --- diff --git a/bootstrap b/bootstrap index 8776e219d..6ae2feb5e 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 }