Zieh Anfrage #3 von TheodorSmall/haupt zusammenführen

Lösung Nr. 2: Verwenden Sie ${@:2:$#} anstelle einer Liste
haupt
Elias Fleckenstein 2022-01-07 11:00:13 +00:00 committed by GitHub
commit 61931f0c21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
idiot
View File

@ -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

View File

@ -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")