Yes, it does the same thing that the shell does.

On Fri, Aug 28, 2015 at 12:31 PM, Matt Bauman <[email protected]> wrote:

> The backtick command syntax looks like it ignores newlines.
> http://docs.julialang.org/en/release-0.3/manual/running-external-programs/
>
> If you're constructing shell commands, that is definitely the way to go:
>
> julia> cmd = `echo hello
>        world`
> `echo hello world`
>
> julia> run(cmd)
> hello world
>
> On Friday, August 28, 2015 at 11:43:20 AM UTC-4, J Luis wrote:
>>
>> Thanks,
>>
>> I know I can do it this way but I guess I was caught by surprise when
>> converting a bash script that had line breaks for readability and those
>> line breaks turned out to break the converted code due to the insertion of
>> \n characters.
>>
>> sexta-feira, 28 de Agosto de 2015 às 10:43:52 UTC+1, Nils Gudat escreveu:
>>>
>>> I must admit that I don't entirely understand your original example, so
>>> I'm not sure this will help, but given that - as you pointed out - you can
>>> add linebreaks into code, why don't you create your string as
>>>
>>> "this is a"*
>>> "multiline string"
>>>
>>

Reply via email to