Cmd vs String

dear julia experts—I am trying to understand why julia avoids strings as arguments for run and readall. WIth Cmd and run and readall, it can require some effort construct pipelines, too. Then there is the fact that it is yet another important type to take care of.

Is the key design aspect for Cmd the intent to avoid shell escapes for better security?

partly to understand this better, partly to make my life easier when I really know what I want to do, if I have a mystring="ls -s | sort -n", can I trick julia into passing this to a shell for execution (not quoted), anyway?

1 Like

The one thing I feel is rather wasteful (of a scarce resource as ASCII characters), is using back-ticks for this, instead of simply using a string macro, such as cmd"..." or c"...")