在Julia中运行带有特殊字符的外部程序&燃气轮机&引用;

在Julia中运行带有特殊字符的外部程序&燃气轮机&引用;,julia,special-characters,external,Julia,Special Characters,External,我想在Julia中运行一个包含特殊字符“>”的外部程序 但我得到了这个错误: ERROR: LoadError: LoadError: parsing command `gunzip -c $filein /> $fileout`: special characters "#{}()[]<>|&*?~;" must be quoted in commands ERROR:LoadError:LoadError:parsing命令`gu

我想在Julia中运行一个包含特殊字符“>”的外部程序

但我得到了这个错误:

ERROR: LoadError: LoadError: parsing command `gunzip -c $filein /> $fileout`:
       special characters "#{}()[]<>|&*?~;" must be quoted in commands
ERROR:LoadError:LoadError:parsing命令`gunzip-c$filein/>$fileout`:
命令中必须引用特殊字符“#{}()[]|&*?~”
我能解决这个问题吗? 感谢使用而不是使用shell语法(
)进行流重定向

例如:

shell> ls
file.txt.gz

julia> p = pipeline(`gunzip -c file.txt.gz`; stdout="file.txt");

julia> run(p);

shell> ls
file.txt  file.txt.gz

shell> cat file.txt
hello, world
或者,您可以调用理解
含义的shell,例如
bash

run(`/bin/bash -c "gunzip -c file.txt.gz > file.txt"`)
run(`/bin/bash -c "gunzip -c file.txt.gz > file.txt"`)