Create external command from string


are backticks the only way to construct a command for the ‘run’ function:

for example:

julia> cmd = “pwd”::String

julia> run($cmd)
Process(pwd, ProcessExited(0))


what is the ` function?

Is there a way to create a command from a string with a function other than the backtick?

julia> Cmd(["ls", "-la"]) == `ls -la`


@cmd "ls -l" or Cmd(["ls", "-l"]) will do what you want (producing the `ls -l` command).


thanks. I think ‘Cmd’ is more readable.