From d0f89327229f6d896387f539ebdcaac3ad30a33c Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sun, 14 Mar 2021 15:11:33 +1300 Subject: [PATCH] pkg(all): replace $* with "$@" --- packages/bash/5.1.0/run | 2 +- packages/dart/2.12.1/run | 2 +- packages/deno/1.7.5/run | 2 +- packages/gawk/5.1.0/run | 2 +- packages/gcc/10.2.0/compile | 8 ++++---- packages/gcc/10.2.0/run | 2 +- packages/java/15.0.2/run | 2 +- packages/jelly/0.1.31/run | 2 +- packages/kotlin/1.4.31/compile | 2 +- packages/mono/6.12.0/compile | 2 +- packages/mono/6.12.0/run | 2 +- packages/nasm/2.15.5/compile | 4 ++-- packages/nasm/2.15.5/run | 2 +- packages/node/15.10.0/run | 2 +- packages/php/8.0.2/run | 2 +- packages/python/3.9.1/run | 2 +- packages/typescript/4.2.3/compile | 2 +- packages/typescript/4.2.3/run | 2 +- 18 files changed, 22 insertions(+), 22 deletions(-) diff --git a/packages/bash/5.1.0/run b/packages/bash/5.1.0/run index be4ec50..a8f3ffb 100644 --- a/packages/bash/5.1.0/run +++ b/packages/bash/5.1.0/run @@ -1,4 +1,4 @@ #!/usr/bin/env bash # Put instructions to run the runtime -bash $* +bash "$@" diff --git a/packages/dart/2.12.1/run b/packages/dart/2.12.1/run index dfdbd40..aae792a 100644 --- a/packages/dart/2.12.1/run +++ b/packages/dart/2.12.1/run @@ -1,4 +1,4 @@ #!/usr/bin/env bash # Put instructions to run the runtime -dart run $* +dart run "$@" diff --git a/packages/deno/1.7.5/run b/packages/deno/1.7.5/run index 9bcf3ef..d1b196f 100644 --- a/packages/deno/1.7.5/run +++ b/packages/deno/1.7.5/run @@ -1,2 +1,2 @@ #!/bin/bash -DENO_DIR=$PWD deno run $* \ No newline at end of file +DENO_DIR=$PWD deno run "$@" \ No newline at end of file diff --git a/packages/gawk/5.1.0/run b/packages/gawk/5.1.0/run index 567b400..5134ddf 100644 --- a/packages/gawk/5.1.0/run +++ b/packages/gawk/5.1.0/run @@ -1,4 +1,4 @@ #!/usr/bin/env bash # Put instructions to run the runtime -gawk-5.1.0 -f $* +gawk-5.1.0 -f "$@" diff --git a/packages/gcc/10.2.0/compile b/packages/gcc/10.2.0/compile index e83346d..acc9ae4 100644 --- a/packages/gcc/10.2.0/compile +++ b/packages/gcc/10.2.0/compile @@ -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})" diff --git a/packages/gcc/10.2.0/run b/packages/gcc/10.2.0/run index 63e3443..60ad16b 100644 --- a/packages/gcc/10.2.0/run +++ b/packages/gcc/10.2.0/run @@ -3,4 +3,4 @@ # Put instructions to run the runtime shift # Discard main filename -./a.out $* +./a.out "$@" diff --git a/packages/java/15.0.2/run b/packages/java/15.0.2/run index 2215edd..0837ba4 100644 --- a/packages/java/15.0.2/run +++ b/packages/java/15.0.2/run @@ -1,4 +1,4 @@ #!/usr/bin/env bash # Put instructions to run the runtime -java $* +java "$@" diff --git a/packages/jelly/0.1.31/run b/packages/jelly/0.1.31/run index 7f4dd38..e07c1af 100644 --- a/packages/jelly/0.1.31/run +++ b/packages/jelly/0.1.31/run @@ -1 +1 @@ -jelly fu $* \ No newline at end of file +jelly fu "$@" \ No newline at end of file diff --git a/packages/kotlin/1.4.31/compile b/packages/kotlin/1.4.31/compile index 8be38a7..d042c39 100644 --- a/packages/kotlin/1.4.31/compile +++ b/packages/kotlin/1.4.31/compile @@ -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 \ No newline at end of file +kotlinc "$@" -include-runtime -d code.jar \ No newline at end of file diff --git a/packages/mono/6.12.0/compile b/packages/mono/6.12.0/compile index 3151cde..746c05e 100644 --- a/packages/mono/6.12.0/compile +++ b/packages/mono/6.12.0/compile @@ -1,3 +1,3 @@ #!/bin/bash -csc $* \ No newline at end of file +csc "$@" \ No newline at end of file diff --git a/packages/mono/6.12.0/run b/packages/mono/6.12.0/run index 9d9b61a..557ce76 100644 --- a/packages/mono/6.12.0/run +++ b/packages/mono/6.12.0/run @@ -2,4 +2,4 @@ CODE=${1/cs/exe} shift -mono $CODE $* \ No newline at end of file +mono $CODE "$@" \ No newline at end of file diff --git a/packages/nasm/2.15.5/compile b/packages/nasm/2.15.5/compile index a8fe6da..e481319 100644 --- a/packages/nasm/2.15.5/compile +++ b/packages/nasm/2.15.5/compile @@ -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 ;; *) diff --git a/packages/nasm/2.15.5/run b/packages/nasm/2.15.5/run index 53a6099..f910a1c 100644 --- a/packages/nasm/2.15.5/run +++ b/packages/nasm/2.15.5/run @@ -2,4 +2,4 @@ # Put instructions to run the runtime shift -./binary $* +./binary "$@" diff --git a/packages/node/15.10.0/run b/packages/node/15.10.0/run index 004ca32..6d1fdee 100644 --- a/packages/node/15.10.0/run +++ b/packages/node/15.10.0/run @@ -1,3 +1,3 @@ #!/bin/bash -node $* \ No newline at end of file +node "$@" \ No newline at end of file diff --git a/packages/php/8.0.2/run b/packages/php/8.0.2/run index 2bce27a..1261d95 100644 --- a/packages/php/8.0.2/run +++ b/packages/php/8.0.2/run @@ -1,3 +1,3 @@ #!/bin/bash -php $* \ No newline at end of file +php "$@" \ No newline at end of file diff --git a/packages/python/3.9.1/run b/packages/python/3.9.1/run index 7b3205b..450bb76 100644 --- a/packages/python/3.9.1/run +++ b/packages/python/3.9.1/run @@ -1,3 +1,3 @@ #!/bin/bash -python3.9 $* \ No newline at end of file +python3.9 "$@" \ No newline at end of file diff --git a/packages/typescript/4.2.3/compile b/packages/typescript/4.2.3/compile index 1258d16..fdf5f19 100644 --- a/packages/typescript/4.2.3/compile +++ b/packages/typescript/4.2.3/compile @@ -2,4 +2,4 @@ # Put instructions to compile source code, remove this file if the language does not require this stage -tsc $* \ No newline at end of file +tsc "$@" \ No newline at end of file diff --git a/packages/typescript/4.2.3/run b/packages/typescript/4.2.3/run index dfd4249..1d26f3f 100644 --- a/packages/typescript/4.2.3/run +++ b/packages/typescript/4.2.3/run @@ -5,4 +5,4 @@ CODE=$(sed 's/ts$/js/' <<<"$1") shift -node $CODE $* +node $CODE "$@"