Lösung Nr. 2: Verwenden Sie anstelle einer Liste

This commit is contained in:
TheodorSmall 2022-01-06 18:28:12 +00:00
parent 3b69088bcd
commit b04b326773
No known key found for this signature in database
GPG Key ID: F1603B4FE29389B1
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")