No, I'm not constructing a shell command. It's a command indeed but must be 
a string that will be parsed by the external program.
I hope to have some nice examples of it soon.

sexta-feira, 28 de Agosto de 2015 às 17:36:17 UTC+1, Stefan Karpinski 
escreveu:
>
> Yes, it does the same thing that the shell does.
>
> On Fri, Aug 28, 2015 at 12:31 PM, Matt Bauman <[email protected] 
> <javascript:>> 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