[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: typeset -p on an empty integer variable is an error. (plus -v test w
From: |
Ken Irving |
Subject: |
Re: typeset -p on an empty integer variable is an error. (plus -v test w/ array elements) |
Date: |
Mon, 14 Jan 2013 12:09:17 -0900 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Mon, Jan 14, 2013 at 08:57:41PM +0100, John Kearney wrote:
> ...
> btw
> || return $?
>
> isn't actually error checking its error propagation.
Also btw, I think you can omit the $? in this case; from bash(1):
return [n]
...
If n is omitted, the return status is that of the last command
executed in the function body. ...
and similarly for exit:
exit [n]
... If n is omitted,
the exit status is that of the last command executed. ...
Ken
- Re: typeset -p on an empty integer variable is an error. (plus -v test w/ array elements), (continued)
- Re: typeset -p on an empty integer variable is an error. (plus -v test w/ array elements), Dan Douglas, 2013/01/12
- Re: typeset -p on an empty integer variable is an error. (plus -v test w/ array elements), John Kearney, 2013/01/12
- Re: typeset -p on an empty integer variable is an error. (plus -v test w/ array elements), Chet Ramey, 2013/01/12
- Re: typeset -p on an empty integer variable is an error. (plus -v test w/ array elements), John Kearney, 2013/01/12
- Re: typeset -p on an empty integer variable is an error. (plus -v test w/ array elements), Greg Wooledge, 2013/01/14
- Re: typeset -p on an empty integer variable is an error. (plus -v test w/ array elements), John Kearney, 2013/01/14
- Re: typeset -p on an empty integer variable is an error. (plus -v test w/ array elements), Greg Wooledge, 2013/01/14
- Re: typeset -p on an empty integer variable is an error. (plus -v test w/ array elements), John Kearney, 2013/01/14
- Re: typeset -p on an empty integer variable is an error. (plus -v test w/ array elements), Chet Ramey, 2013/01/14
- Re: typeset -p on an empty integer variable is an error. (plus -v test w/ array elements), John Kearney, 2013/01/15
- Re: typeset -p on an empty integer variable is an error. (plus -v test w/ array elements),
Ken Irving <=
- Re: typeset -p on an empty integer variable is an error. (plus -v test w/ array elements), John Kearney, 2013/01/14
Re: typeset -p on an empty integer variable is an error. (plus -v test w/ array elements), Chet Ramey, 2013/01/11