Make sure to carefully quote file names.
This commit is contained in:
parent
c536a4a6d3
commit
9488b6476f
|
@ -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="$@";;
|
||||
|
|
Loading…
Reference in New Issue