Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If no ENV variable is specified, fml runs twice using the script #12

Open
ruzito opened this issue Feb 20, 2023 · 0 comments
Open

If no ENV variable is specified, fml runs twice using the script #12

ruzito opened this issue Feb 20, 2023 · 0 comments

Comments

@ruzito
Copy link

ruzito commented Feb 20, 2023

FML/fml

Line 64 in 50869fb

$CMD $@

On this line it excecutes it if no ENV variable is specified, but then it continues parsing the commandline anyway and thus running it using the default parser, compiler, interpreter again

Possibly forgotten exit $?

Context:

FML/fml

Lines 62 to 77 in 50869fb

if $(not $parser_defined) && $(not $compiler_defined) && $(not $interpreter_defined)
then
$CMD $@
fi
# Run with substituted elements, first extract command and input file (if any)
command="$1"; shift
input="$1"; shift
case $command in
run) run "$input";;
parse) parse "$input" "$@";;
compile) compile "$input" "$@";;
execute) execute "$input" "$@";;
*) echo "Unknown command $command: with a specified custom parser, compiler, or interpreter I understand commands: run, parse, compile, and execute"
esac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant