source: npl/internetserver/djbdns/patches/0003-dnstracesort.sh-don-t-use-deprecated-number-sort.diff

Last change on this file was 37aaf89, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

djbdns patches, so it works correctly with twitter etc

  • Property mode set to 100644
File size: 697 bytes
  • dnstracesort.sh

    Description: dnstracesort.sh: don't use deprecated "+number" sort(1) option
     dnstracesort contained the line "sort -t: +0 -2 +4 +3 -4 +2 -3" which
     uses the deprecated sort field selection.  This commit changes the
     options to "-k": "sort -t: -k 1,3 -k 5 -k 4,5 -k 3,4".
    Author: Shai Rosenfeld <shaiguitar@gmail.com>
    Date: Wed, 30 Sep 2009 18:50:32 +0000
    Last-Update: 2020-07-26
    
    diff --git a/dnstracesort.sh b/dnstracesort.sh
    index e57359c..108ef2f 100644
    a b awk -F: ' 
    1212    }
    1313    print
    1414  }
    15 ' | sort -t: +0 -2 +4 +3 -4 +2 -3 | uniq | awk -F: '
     15' | sort -t: -k 1,3 -k 5 -k 4,5 -k 3,4 | uniq | awk -F: '
    1616  {
    1717    type = $1
    1818    q = $2
Note: See TracBrowser for help on using the repository browser.