Sorting the output with -s/--sort doesn't work

Bug #1093674 reported by Sergey Romanov
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dpkg-awk (Debian)
Fix Released
Unknown
dpkg-awk (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Option -s/--sort is supposed to sort the output, but doesn't. Attached diff fixes the problem.

Actually, the patch fixes two unrelated bugs. One prevents sorting altogether, another one shows up only when specifying several sorting fields. The patch uses 'delete array' which is non-POSIX, but supported by all awk versions currently in Debian (mawk, gawk, original-awk). Moreover, 'delete array' has recently been accepted for inclusion into POSIX: http://austingroupbugs.net/view.php?id=544

Tags: bitesize patch
Revision history for this message
Sergey Romanov (sml-uni) wrote :
Changed in dpkg-awk (Debian):
status: Unknown → New
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix sorting of the output" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

Triaged: Reporter has found and fixed problem
Low: Easy work around.

Changed in dpkg-awk (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Sergey Romanov (sml-uni)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dpkg-awk - 1.2+nmu1

---------------
dpkg-awk (1.2+nmu1) unstable; urgency=medium

  * Non-maintainer upload.
  * Mark the package as M-A: foreign. Closes: #842525.
  * Fix sorting (-s option). LP: #1093674. Closes: #556651.
  * Enable two-letter short option -rs. LP: #1093672. Closes: #586040.
  * Drop dependency on gawk. The only feature used by dpkg-awk beyond those
    required by POSIX is 'delete array'. This extension is supported by all
    awk variants currently in Debian. LP: #1092539.
  * Bump standards version.

 -- Matthias Klose <email address hidden> Wed, 15 Nov 2017 08:23:19 +0100

Changed in dpkg-awk (Ubuntu):
status: Triaged → Fix Released
Changed in dpkg-awk (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.