On Wed, Oct 01, 2014 at 12:50:35PM +0200, [email protected] wrote: > On 09/30/2014 06:16 PM, Bill Allombert wrote: > > On Tue, Sep 30, 2014 at 05:44:54PM +0200, [email protected] wrote: > >> Package: menu > >> Version: 2.1.47 > > Hi Bill, > > thanks for pointing this out. I did not know how to ipmlement pipefail > in a POSIX conformal way either and searching on the internet didn't > give me any results of interest for this situation.
Yes, it is rather a shame POSIX sh does not provide a simple way to get the return status of the first pipe element. > But in general I think it should be possible to circumvent the pipefail > here by storing the results of the dpkg query in some sort of structure > and process it with C++-style string routines. > > I'm not sure whether I'll find the time to do the programming for that > but would you be interested at all? Sure, if this is not too wordy. Cheers, Bill. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

