Zieh Anfrage #3 von TheodorSmall/haupt zusammenführen
Lösung Nr. 2: Verwenden Sie ${@:2:$#} anstelle einer Liste
This commit is contained in:
commit
61931f0c21
2
idiot
2
idiot
@ -1,5 +1,5 @@
|
||||
#! /bin/bash
|
||||
args=$2 $3 $4 $5 $6 $7 $8 $9
|
||||
args="${@:2:$#}"
|
||||
case $1 in
|
||||
"hinzufügen")
|
||||
git add $args
|
||||
|
@ -18,7 +18,7 @@ pf:close()
|
||||
|
||||
local f = io.open("idiot", "w")
|
||||
f:write("#! /bin/bash\n")
|
||||
f:write("args=$2 $3 $4 $5 $6 $7 $8 $9\n")
|
||||
f:write("args=\"${@:2:$#}\"\n")
|
||||
|
||||
f:write("case $1 in\n")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user