From 5ebd387640ed45bd320431ad30ec92103166ef74 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 19 Dec 2018 16:50:10 -0600 Subject: Fix sort -x attached to a key. --- toys/posix/sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') diff --git a/toys/posix/sort.c b/toys/posix/sort.c index 2f4d49a0..4c9452eb 100644 --- a/toys/posix/sort.c +++ b/toys/posix/sort.c @@ -328,7 +328,7 @@ void sort_main(void) // Was it a flag that can apply to a key? - if (!temp2 || flag>FLAG_b + if (!temp2 || flag>FLAG_x || (flag&(FLAG_u|FLAG_c|FLAG_s|FLAG_z))) { error_exit("Unknown key option."); -- cgit v1.2.3