[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#34488: Add sort --limit, or document workarounds for sort|head error
From: |
Eric Blake |
Subject: |
bug#34488: Add sort --limit, or document workarounds for sort|head error messages |
Date: |
Mon, 25 Feb 2019 08:01:44 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 |
On 2/23/19 11:32 PM, Pádraig Brady wrote:
>>>> You HAVE to use some other intermediate program if you want to override
>>>> an inherited ignored SIGPIPE in sh into an inherited default-behavior
>>>> SIGPIPE in sort.
>>>
>>> Should we also propose to POSIX to allow trap to specify default?
>>
>> That's what "trap - PIPE" is already supposed to do, except that POSIX
>> has the odd requirement that a signal that was inherited ignored cannot
>> be reset to default.
>>
>>> Maybe `trap 0 PIPE` or similar?
>>
>> Alas, bash has already defined that to mean the same as 'trap - EXIT PIPE'.
>
> Fair enough, but do we agree that it would be good
> to have functionality in the shell with some similar syntax
> that resets the handler to system default?
Worth asking on the bash list to see if Chet has any interest in such an
extension (POSIX is reluctant to specify something that doesn't have
existing implementation practice).
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
- bug#34488: Add sort --limit, or document workarounds for sort|head error messages, (continued)
- bug#34488: Add sort --limit, or document workarounds for sort|head error messages, Pádraig Brady, 2019/02/17
- bug#34488: Add sort --limit, or document workarounds for sort|head error messages, Assaf Gordon, 2019/02/18
- bug#34488: Add sort --limit, or document workarounds for sort|head error messages, Pádraig Brady, 2019/02/24
- bug#34488: Add sort --limit, or document workarounds for sort|head error messages, Paul Eggert, 2019/02/24
- bug#34488: Add sort --limit, or document workarounds for sort|head error messages, 積丹尼 Dan Jacobson, 2019/02/24
- bug#34488: Add sort --limit, or document workarounds for sort|head error messages, Assaf Gordon, 2019/02/25
- bug#34488: Add sort --limit, or document workarounds for sort|head error messages, Pádraig Brady, 2019/02/26
bug#34488: Add sort --limit, or document workarounds for sort|head error messages, Pádraig Brady, 2019/02/17
bug#34488: Add sort --limit, or document workarounds for sort|head error messages, Assaf Gordon, 2019/02/15