[Top][All Lists]

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

[PATCH] Various sort-related things

From: Shawn Wagner
Subject: [PATCH] Various sort-related things
Date: Sun, 21 Jun 2020 06:40:04 -0700

Funny how trying to fix one thing kind of snowballs...

In this combo patch: Have the configure script look for a sort(1), preferring gsort over sort, so that on OSes without GNU userlands, if the GNU coreutils package is installed, its version of sort is used - decorate in particular assumes GNU sort for a lot of its options. Also add a --sort-cmd option to datamash and decorate for specifying an alternative at runtime.

Shell escape/quote the strings printed by decorate's --print-sort-args option when needed, and the sort command passed to popen() in datamash. Also gets rid of an existing arbitrary 1024 character limit on that in datamash.

In decorate, when using the NetBSD /usr/bin/sort, add -S to its options to make it use an unstable sort (Unlike every other sort(1), it's stable by default, which was breaking some tests).

Attachment: 0001-Squashed-commit-of-the-following.patch
Description: Binary data

reply via email to

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