pkg(all): replace $* with "$@"

This commit is contained in:
Thomas Hobson 2021-03-14 15:11:33 +13:00
parent 55f45e05bc
commit d0f8932722
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
18 changed files with 22 additions and 22 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
bash $*
bash "$@"

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
dart run $*
dart run "$@"

View File

@ -1,2 +1,2 @@
#!/bin/bash
DENO_DIR=$PWD deno run $*
DENO_DIR=$PWD deno run "$@"

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
gawk-5.1.0 -f $*
gawk-5.1.0 -f "$@"

View File

@ -5,16 +5,16 @@
case "${PISTON_ALIAS}" in
gcc | c)
gcc -std=c11 $* -lm
gcc -std=c11 "$@" -lm
;;
g++ | c++ | cpp)
g++ -std=c++17 $*
g++ -std=c++17 "$@"
;;
gccgo | go)
gccgo $*
gccgo "$@"
;;
gdc | d)
gdc $*
gdc "$@"
;;
*)
echo "How did you get here? (${PISTON_ALIAS})"

View File

@ -3,4 +3,4 @@
# Put instructions to run the runtime
shift # Discard main filename
./a.out $*
./a.out "$@"

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
java $*
java "$@"

View File

@ -1 +1 @@
jelly fu $*
jelly fu "$@"

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
# Put instructions to compile source code, remove this file if the language does not require this stage
kotlinc $* -include-runtime -d code.jar
kotlinc "$@" -include-runtime -d code.jar

View File

@ -1,3 +1,3 @@
#!/bin/bash
csc $*
csc "$@"

View File

@ -2,4 +2,4 @@
CODE=${1/cs/exe}
shift
mono $CODE $*
mono $CODE "$@"

View File

@ -5,11 +5,11 @@
case "${PISTON_ALIAS}" in
nasm)
nasm -f elf32 -o binary.o $*
nasm -f elf32 -o binary.o "$@"
ld -m elf_i386 binary.o -o binary
;;
nasm64)
nasm -f elf64 -o binary.o $*
nasm -f elf64 -o binary.o "$@"
ld -m elf_x86_64 binary.o -o binary
;;
*)

View File

@ -2,4 +2,4 @@
# Put instructions to run the runtime
shift
./binary $*
./binary "$@"

View File

@ -1,3 +1,3 @@
#!/bin/bash
node $*
node "$@"

View File

@ -1,3 +1,3 @@
#!/bin/bash
php $*
php "$@"

View File

@ -1,3 +1,3 @@
#!/bin/bash
python3.9 $*
python3.9 "$@"

View File

@ -2,4 +2,4 @@
# Put instructions to compile source code, remove this file if the language does not require this stage
tsc $*
tsc "$@"

View File

@ -5,4 +5,4 @@
CODE=$(sed 's/ts$/js/' <<<"$1")
shift
node $CODE $*
node $CODE "$@"