From 2014ab03540e62e3a46f9b1ecd1df3dd1e5af82f Mon Sep 17 00:00:00 2001 From: bapt Date: Mon, 6 Oct 2014 09:15:09 +0000 Subject: MFC: r272398 Make sure to not skip any argument when converting from deprecated +POS1, -POS2 to -kPOS1,POS2, so that sort +0n gets translated to sort -k1,1n as it is expected PR: 193994 Submitted by: rodrigo MFC after: 3 days --- usr.bin/sort/sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/sort') diff --git a/usr.bin/sort/sort.c b/usr.bin/sort/sort.c index d811a86..372c661 100644 --- a/usr.bin/sort/sort.c +++ b/usr.bin/sort/sort.c @@ -897,7 +897,7 @@ fix_obsolete_keys(int *argc, char **argv) } } } - sprintf(sopt, "-k%d.%d", f1, c1); + sprintf(sopt, "-k%d.%d%s", f1, c1, sopts1); argv[i] = sort_strdup(sopt); } } -- cgit v1.1