mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-17 00:56:27 +02:00
pkg(all): replace $* with "$@"
This commit is contained in:
parent
55f45e05bc
commit
d0f8932722
18 changed files with 22 additions and 22 deletions
2
packages/bash/5.1.0/run
vendored
2
packages/bash/5.1.0/run
vendored
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Put instructions to run the runtime
|
# Put instructions to run the runtime
|
||||||
bash $*
|
bash "$@"
|
||||||
|
|
2
packages/dart/2.12.1/run
vendored
2
packages/dart/2.12.1/run
vendored
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Put instructions to run the runtime
|
# Put instructions to run the runtime
|
||||||
dart run $*
|
dart run "$@"
|
||||||
|
|
2
packages/deno/1.7.5/run
vendored
2
packages/deno/1.7.5/run
vendored
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
DENO_DIR=$PWD deno run $*
|
DENO_DIR=$PWD deno run "$@"
|
2
packages/gawk/5.1.0/run
vendored
2
packages/gawk/5.1.0/run
vendored
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Put instructions to run the runtime
|
# Put instructions to run the runtime
|
||||||
gawk-5.1.0 -f $*
|
gawk-5.1.0 -f "$@"
|
||||||
|
|
8
packages/gcc/10.2.0/compile
vendored
8
packages/gcc/10.2.0/compile
vendored
|
@ -5,16 +5,16 @@
|
||||||
|
|
||||||
case "${PISTON_ALIAS}" in
|
case "${PISTON_ALIAS}" in
|
||||||
gcc | c)
|
gcc | c)
|
||||||
gcc -std=c11 $* -lm
|
gcc -std=c11 "$@" -lm
|
||||||
;;
|
;;
|
||||||
g++ | c++ | cpp)
|
g++ | c++ | cpp)
|
||||||
g++ -std=c++17 $*
|
g++ -std=c++17 "$@"
|
||||||
;;
|
;;
|
||||||
gccgo | go)
|
gccgo | go)
|
||||||
gccgo $*
|
gccgo "$@"
|
||||||
;;
|
;;
|
||||||
gdc | d)
|
gdc | d)
|
||||||
gdc $*
|
gdc "$@"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "How did you get here? (${PISTON_ALIAS})"
|
echo "How did you get here? (${PISTON_ALIAS})"
|
||||||
|
|
2
packages/gcc/10.2.0/run
vendored
2
packages/gcc/10.2.0/run
vendored
|
@ -3,4 +3,4 @@
|
||||||
# Put instructions to run the runtime
|
# Put instructions to run the runtime
|
||||||
|
|
||||||
shift # Discard main filename
|
shift # Discard main filename
|
||||||
./a.out $*
|
./a.out "$@"
|
||||||
|
|
2
packages/java/15.0.2/run
vendored
2
packages/java/15.0.2/run
vendored
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Put instructions to run the runtime
|
# Put instructions to run the runtime
|
||||||
java $*
|
java "$@"
|
||||||
|
|
2
packages/jelly/0.1.31/run
vendored
2
packages/jelly/0.1.31/run
vendored
|
@ -1 +1 @@
|
||||||
jelly fu $*
|
jelly fu "$@"
|
2
packages/kotlin/1.4.31/compile
vendored
2
packages/kotlin/1.4.31/compile
vendored
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Put instructions to compile source code, remove this file if the language does not require this stage
|
# 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
|
2
packages/mono/6.12.0/compile
vendored
2
packages/mono/6.12.0/compile
vendored
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
csc $*
|
csc "$@"
|
2
packages/mono/6.12.0/run
vendored
2
packages/mono/6.12.0/run
vendored
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
CODE=${1/cs/exe}
|
CODE=${1/cs/exe}
|
||||||
shift
|
shift
|
||||||
mono $CODE $*
|
mono $CODE "$@"
|
4
packages/nasm/2.15.5/compile
vendored
4
packages/nasm/2.15.5/compile
vendored
|
@ -5,11 +5,11 @@
|
||||||
|
|
||||||
case "${PISTON_ALIAS}" in
|
case "${PISTON_ALIAS}" in
|
||||||
nasm)
|
nasm)
|
||||||
nasm -f elf32 -o binary.o $*
|
nasm -f elf32 -o binary.o "$@"
|
||||||
ld -m elf_i386 binary.o -o binary
|
ld -m elf_i386 binary.o -o binary
|
||||||
;;
|
;;
|
||||||
nasm64)
|
nasm64)
|
||||||
nasm -f elf64 -o binary.o $*
|
nasm -f elf64 -o binary.o "$@"
|
||||||
ld -m elf_x86_64 binary.o -o binary
|
ld -m elf_x86_64 binary.o -o binary
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
2
packages/nasm/2.15.5/run
vendored
2
packages/nasm/2.15.5/run
vendored
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
# Put instructions to run the runtime
|
# Put instructions to run the runtime
|
||||||
shift
|
shift
|
||||||
./binary $*
|
./binary "$@"
|
||||||
|
|
2
packages/node/15.10.0/run
vendored
2
packages/node/15.10.0/run
vendored
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
node $*
|
node "$@"
|
2
packages/php/8.0.2/run
vendored
2
packages/php/8.0.2/run
vendored
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
php $*
|
php "$@"
|
2
packages/python/3.9.1/run
vendored
2
packages/python/3.9.1/run
vendored
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
python3.9 $*
|
python3.9 "$@"
|
2
packages/typescript/4.2.3/compile
vendored
2
packages/typescript/4.2.3/compile
vendored
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
# Put instructions to compile source code, remove this file if the language does not require this stage
|
# Put instructions to compile source code, remove this file if the language does not require this stage
|
||||||
|
|
||||||
tsc $*
|
tsc "$@"
|
2
packages/typescript/4.2.3/run
vendored
2
packages/typescript/4.2.3/run
vendored
|
@ -5,4 +5,4 @@
|
||||||
CODE=$(sed 's/ts$/js/' <<<"$1")
|
CODE=$(sed 's/ts$/js/' <<<"$1")
|
||||||
shift
|
shift
|
||||||
|
|
||||||
node $CODE $*
|
node $CODE "$@"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue