Make sure to carefully quote file names.

This commit is contained in:
Francois Gouget 2000-11-02 20:07:53 +00:00 committed by Alexandre Julliard
parent c536a4a6d3
commit 9488b6476f
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@
#
case "$#" in
0 | 1) files=${1:-'*.c'}
if [ `echo $files | sed 's/^\(.*\)\/$/\1/g'` = "$files" ]; then
0 | 1) files="${1:-*.c}"
if [ "`echo "$files" | sed 's/^\(.*\)\/$/\1/g'`" = "$files" ]; then
files=`find . -name "$files" -print`
fi;;
* ) files="$@";;