bug#34488: Add sort --limit, or document workarounds for sort|head error
From:
Pádraig Brady
Subject:
bug#34488: Add sort --limit, or document workarounds for sort|head error messages
Date:
Sat, 23 Feb 2019 22:13:41 -0800
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 18/02/19 01:46, Assaf Gordon wrote:
> Hello,
>
> Thanks for all comments (on and off list).
> Attached an updated patch with documentation.
>
> The supported options are:
>
> --default-signal[=SIG] reset signal SIG to its default signal handler.
> without SIG, all known signals are included.
> multiple signals can be comma-separated.
> --ignore-signal[=SIG] set signal SIG to be IGNORED.
> without SIG, all known signals are included.
> multiple signals can be comma-separated.
> -p same as --default-signal=PIPE
>
> (lower-case "-p" as to not conflict with BSD, but of course can be
> changed to another letter).
>
> The new 'env-signal-handler.sh' test passes on GNU/linux, non-gnu/linux
> (alpine), and Free/Open/Net BSD.
>
> Comments very welcomed,
Attached is a patch to be squashed in to:
Process the same signals as kill -l
Output whether action failed or not
Don't run sigaction(..set..) if get failed
I'm not that enthusiastic about the -p
since it treats PIPE specially here,
and it's not special from env's point of view.
cheers,
Pádraig