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

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -