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
This commit is contained in:
parent
0434c163cc
commit
3e16491d77
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user