Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Nov 2013 19:47:38 +0100
From:      dt71@gmx.com
To:        Jilles Tjoelker <jilles@stack.nl>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Automated submission of kernel panic reports
Message-ID:  <5277EBCA.3010807@gmx.com>
In-Reply-To: <20131103212950.GA22571@stack.nl>
References:  <526F8EB3.1040205@freebsd.org> <20131103212950.GA22571@stack.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Jilles Tjoelker wrote, On 11/03/2013 22:29:
> The 'local' utility
> returns 0 because it successfully created the local variable, ignoring
> the status from the command substitution. Use
>    local tmpfile
>    tmpfile=`mktemp` || exit 1
> in both occurrences.

Does it make sense to use
     local tmpfile || exit 1
     tmpfile=`mktemp` || exit 1
?

Bah, let's just use ``set -e''...




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5277EBCA.3010807>