Skip to content

Commit

Permalink
Always quote $@ to prevent globbing
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Ruester authored and mariux committed Jan 11, 2016
1 parent 56cd40c commit bd5c601
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/bee-cache-update.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fi

function print_info()
{
echo ${@}
echo "${@}"
}

function create_pkgbcfile()
Expand Down
2 changes: 1 addition & 1 deletion src/bee-query.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ usage() {
}

function query() {
list=$@
list="$@"

for f in "${list[@]}" ; do
# check if $f is pkg, list related files
Expand Down
2 changes: 1 addition & 1 deletion src/bee-update.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ VERSION=${BEE_VERSION}

: ${BEE_LIBEXECDIR:=@LIBEXECDIR@}

exec ${BEE_LIBEXECDIR}/bee/bee.d/bee-install --update ${@}
exec ${BEE_LIBEXECDIR}/bee/bee.d/bee-install --update "${@}"
2 changes: 1 addition & 1 deletion src/beefind.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@ if [ -n "${OPT_OUTPUT}" ] ; then
fi
fi

do_beefind ${@}
do_beefind "${@}"
4 changes: 2 additions & 2 deletions src/beesh.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,13 @@ function fetch_one_file() {
}

function fetch_one_archive() {
fetch_one_file $@
fetch_one_file "$@"

bee_SOURCEFILES=( ${bee_SOURCEFILES[@]} ${bee_FETCHED_FILE} )
}

function fetch_one_patch() {
fetch_one_file $@
fetch_one_file "$@"

if [ "${bee_FETCHED_FILE: -3:3}" = ".gz" ] ; then
if gunzip "${bee_FETCHED_FILE}" -c >"${bee_FETCHED_FILE%.gz}" ; then
Expand Down
2 changes: 1 addition & 1 deletion src/compat-filesfile2contentfile.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ while read line ; do
fi
echo ":file=${file}"

done < <(cat $@)
done < <(cat "$@")
2 changes: 1 addition & 1 deletion src/filelist2content.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,4 @@ while true ; do
esac
done

do_f2c <(cat ${@}) "${OPT_ROOT}"
do_f2c <(cat "${@}") "${OPT_ROOT}"

0 comments on commit bd5c601

Please sign in to comment.