77 Commits (master)

Author SHA1 Message Date
Michael Forney e5284b1537 sort: Don't do fallback top-level sort in check mode
3 years ago
Michael Forney e9bfb97808 sort: Consider end field in keydef when additional fields are present
3 years ago
Richard Ipsum 57c9cab849 sort: Fix string length update math
3 years ago
Michael Forney 6b950e436b sort: Use regular `double` for -n
4 years ago
Michael Forney a944b682a6 sort: Fix line comparison when col buffer contains data from longer line
7 years ago
Michael Forney 75611997f9 sort: Fix -c option
7 years ago
FRIGN 5ad71a466b Error out when giving an empty delimiter to sort(1)
7 years ago
FRIGN 0fa5a3e5bb Rename struct linebufline to struct line and add linecmp()
7 years ago
FRIGN 54d3f3b3a5 Rename linecmp and line-structs in join(1) and sort(1)
7 years ago
FRIGN d585d4b028 No need for += when res is 0 anyway
7 years ago
FRIGN 9d120b7b32 Actually move past the field separator
7 years ago
FRIGN 0e25f09b56 Remove debug info
7 years ago
FRIGN eb9bda8787 Support NUL-containing lines in sort(1)
7 years ago
pekka.jylha.ollila@gmail.com fad1d35357 Add -d, -f and -i flags to sort(1)
7 years ago
sin 2366164de7 No need for semicolon after ARGEND
8 years ago
FRIGN 51390a3c51 Audit sort(1) and mark it as finished
8 years ago
FRIGN e153447657 Make sort(1) utf-compliant and update README
8 years ago
FRIGN 1622089a21 Reorder functions in sort(1)
8 years ago
FRIGN 61ee561728 Factor out parse_keydef() into addkeydef() and reorder functions
8 years ago
FRIGN e00cdf226a Use queue.h-macros in sort(1)
8 years ago
FRIGN d23cc72490 Simplify return & fshut() logic
8 years ago
FRIGN 9a074144c9 Remove handrolled strcmp()'s
8 years ago
FRIGN 0545d32ce9 Handle '-' consistently
8 years ago
Hiltjo Posthuma 72250324b1 sort: reuse buffer in columns()
8 years ago
Jakob Kramer 403b047a30 sort: allow keys where start_col > end_col
8 years ago
Jakob Kramer 061932a31b sort: allow 0 as key's end_char
8 years ago
Jakob Kramer bddb7200b8 sort: apply -b only to "custom" keys
8 years ago
Jakob Kramer 2d9d224a1b sort: add support for delimiter strings
8 years ago
FRIGN 11e2d472bf Add *fshut() functions to properly flush file streams
8 years ago
FRIGN 9144d51594 Check getline()-return-values properly
8 years ago
FRIGN df8529f0a1 Fix syntax error in sort(1)
8 years ago
FRIGN 49e27c1b0c Add -m and -o flags to sort(1)
8 years ago
Hiltjo Posthuma ad6776e9a1 grep, kill, renice, sort: style: put main at bottom
8 years ago
Hiltjo Posthuma 31f0624f3d code-style: minor cleanup and nitpicking
8 years ago
FRIGN 31572c8b0e Clean up #includes
8 years ago
Jakob Kramer 0fcad66c75 make use of en*alloc functions
8 years ago
Jakob Kramer 4769b47dd7 Use size_t for number of lines in linebuf
8 years ago
Jakob Kramer 572ad27110 sort: support sorting decimal numbers correctly
8 years ago
sin 153b8428b1 Nuke another freelist()
8 years ago
Michael Forney cb427d553a sort: Implement -c and -C flags
8 years ago
FRIGN 1436518f9d Use < 0 instead of == -1
8 years ago
FRIGN 7fc5856e64 Tweak NULL-pointer checks
8 years ago
FRIGN ec8246bbc6 Un-boolify sbase
8 years ago
FRIGN eee98ed3a4 Fix coding style
8 years ago
sin 0c5b7b9155 Stop using EXIT_{SUCCESS,FAILURE}
9 years ago
sin b712ef44ad Fix warning 'array subscript of type char'
9 years ago
Jakob Kramer 7d1fd2621e add -t flag to sort
9 years ago
Jakob Kramer 9366f48b1f sort: simplify linecmp, rename curr => tail
9 years ago
Jakob Kramer 6f7e9a5078 sort: add support for "per-keydef" flags
9 years ago
Jakob Kramer 109e8963f5 sort: ignore trailing newline while sorting
9 years ago