[Top][All Lists]

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

Re: bash 'let' can give error

From: Dominic Raferd
Subject: Re: bash 'let' can give error
Date: Fri, 10 Dec 2010 16:19:12 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv: Gecko/20101027 Thunderbird/3.1.6

On 10/12/2010 15:15, Greg Wooledge wrote:
On Thu, Dec 09, 2010 at 05:52:49PM +0000, Dominic Raferd wrote:
Why does this happen? Is it 'by design'? It makes arithmetic with bash
let very dangerous because it can throw unexpected errors (and break
scripts running with  set -e).
http://mywiki.wooledge.org/BashFAQ/105 -- Why doesn't set -e (set -o
errexit) do what I expected?
Thanks Greg (and also Eric and Andreas). Your FAQ makes it very clear; that is to say, it makes it clear how darned complicated it is. Seems best to avoid using 'set -e' altogether, as you say (except perhaps at an early stage for debugging): point taken.


reply via email to

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