However, by hand I am able to run without the awkward single quotes just fine.
jar cf dest.jar folder/*.class
The issue is that I need all the *.class files in one .jar file, which are generated from a Julia process. This automated single quoting seems a bit tricky in this situation… I think the documentation motivates the case of working around spaces in file names, but maybe a funny\ filename.txt would be an alternative solution rather than an automated 'funny filename.txt'?
Is there a workaround to avoid the introduction of single quotes? Thanks in advance.
There’s a plan to add more shell-like features to backticks in the future, which is why we’ve deprecated unquoted/unescaped shell metacharacters in backticks in 0.6. In the future this kind of globbing may be built in, and Julia will effectively implement a basic portable shell in backticks, including pipelines, I/O redirection and probably globbing and home directory expansion. It would also allow cool things like splicing a Julia task into a pipeline or reading to/from arbitrary Julia I/O objects. I was going to try to do this for 1.0 but realized that it was a ton of work and can be added in 1.x now that we’ve deprecated shell metacharacters.
Some time ago, I wanted shell-like functionality for Julia’s backtick commands.
So I wrote a small convenience module to help.
It uses command literals.