help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] best practice with handling syntax errors


From: Christof Warlich
Subject: Re: [Help-bash] best practice with handling syntax errors
Date: Thu, 15 Dec 2016 20:35:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]