From: Simon Ruderich Date: Sat, 14 Jan 2012 14:40:53 +0000 (+0100) Subject: shell/aliases: Replace remaining $* with "$@". X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=edf851567eec41639698e24fffa4528c4981a2e1 shell/aliases: Replace remaining $* with "$@". --- diff --git a/shell/aliases b/shell/aliases index f59801b..c508f6f 100644 --- a/shell/aliases +++ b/shell/aliases @@ -38,7 +38,7 @@ fi # Main ls function, separated to prevent code duplication. ls_path=`which ls` my_ls() { - "$ls_path" -C -F $* 2>&1 | less + "$ls_path" -C -F "$@" 2>&1 | less } # Make sure there is no alias named ls as it causes problems with the # following ls function on (at least) bash 4.0.35. @@ -46,17 +46,17 @@ unalias ls 2> /dev/null # GNU ls with colors. if [ x$ls_color = xgnu ]; then ls() { - my_ls --color $* + my_ls --color "$@" } # Normal ls with colors. elif [ x$ls_color = xcli ]; then ls() { - CLICOLOR_FORCE=1 my_ls -G $* + CLICOLOR_FORCE=1 my_ls -G "$@" } # Simple ls with no colors. else ls() { - my_ls $* + my_ls "$@" } fi unset ls_color