Prior to Julia 0.5, I could run
diff = readlines(`diff $oldfile $newfile`)
and get the diff between the files.
Now Julia throws an exception because diff returns exit code 1, so I no longer get the output assigned to my variable.
What is the intended way of working around this problem?
diff = readlines(Cmd(`diff $oldfile $newfile`, ignorestatus=true))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With