Discussion:
[Help-bash] best practice with handling syntax errors
Christof Warlich
2016-12-15 19:35:55 UTC
Permalink
Hi Andy,
$ if false; then [[ -ee /etc/password ]]; fi; echo $?
-bash: conditional binary operator expected
-bash: syntax error near `/etc/password'
many thanks, that's even more w.r.t. best practice than I was hoping
for, great!
http://www.oilshell.org/blog/
<http://www.oilshell.org/blog/2016/10/12.html>
And by the way: Interesting blog

Cheers,

Christof

Loading...