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

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -