multi-line commands in Julia

Viewed 10636

You can run commands in Julia using the following syntax:

run(`echo 123`)

How can I easily run a long command with multiple arguments? It is convenient to split it up over multiple lines for readability purposes. Can I do this in Julia?

2 Answers

Be sure not to leave a complete command in the first line.

julia> 1
       +2
2

This is a mistake that I made when writing a long expression in a .jl file.

Related