julia lang - How can I capture the output of an external program that returns a non-zero exit code? -
prior julia 0.5, run
diff = readlines(`diff $oldfile $newfile`)
and diff between files.
now julia throws exception because diff returns exit code 1, no longer output assigned variable.
what intended way of working around problem?
diff = readlines(cmd(`diff $oldfile $newfile`, ignorestatus=true))
Comments
Post a Comment