[Top][All Lists]

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

Re: Command substitution and errexit

From: Nikolai Kondrashov
Subject: Re: Command substitution and errexit
Date: Tue, 16 Oct 2012 00:25:47 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.7) Gecko/20120922 Icedove/10.0.7

Hi Andreas,

On 10/16/2012 12:20 AM, Andreas Schwab wrote:
Nikolai Kondrashov<address@hidden>  writes:
Actually, I'm writing it for myself and I want to *disable* errexit
temporarily for other's code

o=$-; set +e; ...; case $o in *e*) set -e;; esac

Thanks, I considered the usage of $- (only found it today). However, it also
includes command line options, apparently, and I wanted to save/restore all
set options (shall I call them "attributes"?), so decided it would be too


reply via email to

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