Browse Source

Fix debugging of arg list

"@" breaks the string to several arguments, which is not what we want
here
Alois Mahdal 9 years ago
parent
commit
f9af1886a6
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/bin/saturnin.skel

+ 2
- 2
src/bin/saturnin.skel View File

@@ -54,7 +54,7 @@ while true; do case $1 in
54 54
 esac done
55 55
 
56 56
 debug -v FFOO_PATH SATURNIN_LIBEXEC FFOO_CONFIG_PATH
57
-debug "\$@=$@"
57
+debug "\$*='$*'"
58 58
 
59 59
 SATURNIN_SUBCOMMAND=$1
60 60
 shift
@@ -64,7 +64,7 @@ case $SATURNIN_SUBCOMMAND in
64 64
     *)
65 65
         lexpath="$SATURNIN_LIBEXEC/saturnin-$SATURNIN_SUBCOMMAND"
66 66
         debug -v lexpath
67
-        debug "\$@='$@'"
67
+        debug "\$*='$*'"
68 68
         test -x "$lexpath" && exec "$lexpath" "$@"
69 69
         warn "invalid sub-command: $SATURNIN_SUBCOMMAND"
70 70
         print_help; exit $FFOO_EXIT_USAGE