projects
/
gsu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
725d6bd
)
gsu: Replace "$*" by "$@".
author
Andre Noll
<maan@oka.fml.local>
Fri, 24 Aug 2007 17:06:30 +0000
(19:06 +0200)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Fri, 29 Aug 2014 19:36:07 +0000
(21:36 +0200)
This allows to pass parameters containing spaces.
funcs/gsu
patch
|
blob
|
history
diff --git
a/funcs/gsu
b/funcs/gsu
index 4c9eb2dfca2adb897d4bd47f690df9c0884745c5..136eda645e86fe39ebb6d8ea863f09487ce3fb79 100644
(file)
--- a/
funcs/gsu
+++ b/
funcs/gsu
@@
-178,6
+178,8
@@
export -f gsu_print_available_commands
gsu()
{
+ local i
+
gsu_self="$(basename $0)"
gsu_init_errors
gsu_available_commands
@@
-191,7
+193,8
@@
gsu()
shift
for i in $gsu_cmds; do
if test "$arg" = "$i"; then
- com_$arg $*
+ com_$arg "$@"
+ ret=1
if test $ret -lt 0; then
gsu_err_msg
exit 1