sort: fix multiple -k (was ignoring all except last)

This commit is contained in:
Denis Vlasenko
2007-02-17 18:11:45 +00:00
parent ec27feb045
commit 54cf511ce1
8 changed files with 26 additions and 10 deletions

View File

@@ -1312,7 +1312,7 @@ int od_main(int argc, char **argv)
if (opt & OPT_l) decode_format_string("d4");
if (opt & OPT_o) decode_format_string("o2");
//if (opt & OPT_t)...
lst_t = rev_llist(lst_t);
lst_t = llist_rev(lst_t);
while (lst_t) {
decode_format_string(lst_t->data);
lst_t = lst_t->link;