Julia doesn't use the shell to execute commands, but parses "shell commands" itself. Since Julia has its own control flow constructs, we don't duplicate those at the "shell" level. See http://julia.readthedocs.org/en/latest/manual/running-external-programs/#pipelines for more information.
On Fri, Nov 7, 2014 at 9:03 PM, Davide Lasagna <[email protected]> wrote: > Hi, > > just wondering why I cannot chain these kind of multiple commands in julia. > > Example: the command run(`mkdir $tmp && touch $file`) creates the > directories $tmp, && touch and $file, while I only want the second part > after && to run if first command is successful. Similarly if I use the ";" > to create a sequence of commands, e.g. run(`mkdir $tmp; touch $file`). > > I could run multiple commands separately, and do the checks in julia, but > there might be an easier way to achieve that. > > Davide > > > > >
