Skip to content

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

@ruzito

Description

@ruzito

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions