[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] difference of $? and ${PIPESTATUS[0]}
From: |
felix |
Subject: |
Re: [Help-bash] difference of $? and ${PIPESTATUS[0]} |
Date: |
Mon, 22 Apr 2024 10:29:19 +0200 |
Le Mon, Apr 22, 2024 at 10:56:03AM +0300, Oğuz a écrit :
>
> Me neither, but the current behavior is useful.
I agree!
Anyway, reading man page, `$?` have to be equivalent to `${PIPESTATUS[-1]}`!
which is not always the case.
> I've never seen anything like that in a real shell script.
I have to confess my neither, upto this post on SO, more than ten years later!
--
Félix Hauri - <felix@f-hauri.ch> - http://www.f-hauri.ch