How to write shell && and || in julia cmd syntax?

Hi there,
I guess this is a standard question, but my google skills failed so far.

Can someone explain how to map shell’s && and || to julia’s own cmd syntax/api?

julia> success(`true`) && run(`echo wow`);

julia> success(`false`) && run(`echo wow`);

julia> success(`false`) || run(`echo oh no`);
oh no

julia> success(`true`) || run(`echo oh no`);

1 Like

See also Running External Programs · The Julia Language

I don’t see anything about logical operators there.

1 Like