Make sure to carefully quote file names.
This commit is contained in:
parent
c536a4a6d3
commit
9488b6476f
|
@ -32,8 +32,8 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
case "$#" in
|
case "$#" in
|
||||||
0 | 1) files=${1:-'*.c'}
|
0 | 1) files="${1:-*.c}"
|
||||||
if [ `echo $files | sed 's/^\(.*\)\/$/\1/g'` = "$files" ]; then
|
if [ "`echo "$files" | sed 's/^\(.*\)\/$/\1/g'`" = "$files" ]; then
|
||||||
files=`find . -name "$files" -print`
|
files=`find . -name "$files" -print`
|
||||||
fi;;
|
fi;;
|
||||||
* ) files="$@";;
|
* ) files="$@";;
|
||||||
|
|
Loading…
Reference in New Issue