My code:
df = read(`df -h|grep /dev/sda1 && df -h|grep pCloud`, String)
When I run it I get the following message from Julia:
Warning: special characters "#{}()[]<>|&*?~;" should now be quoted in commands
│ caller = #shell_parse#333(::String, ::Function, ::String, ::Bool) at shell.jl:100
└ @ Base ./shell.jl:100
df: invalid option -- '|'
Try 'df --help' for more information.
ERROR: LoadError: failed
process: Process(`df '-h|grep' /dev/sda1 '&&' df '-h|grep' pCloud`, ProcessExited(1)) [1]
I have found someone having a similar problem, but they seem to have resolved this issue without escaping.