From dbd8ccc856b66d21c54619f910d5f5a9e4ee2d72 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 1 Aug 2023 11:17:13 -0500 Subject: [PATCH] Tweak help text and remove unnecessary parentheses. --- toys/posix/cut.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toys/posix/cut.c b/toys/posix/cut.c index b9710ea5..40cc15c3 100644 --- a/toys/posix/cut.c +++ b/toys/posix/cut.c @@ -28,11 +28,11 @@ config CUT -b Select bytes (with -n round start/end down to start of utf8 char) -c Select UTF-8 characters -C Select unicode columns - -d Use DELIM (default is TAB for -f, run of whitespace for -F) + -d Input delimiter (default is TAB for -f, run of whitespace for -F) -D Don't sort/collate selections or match -fF lines without delimiter -f Select fields (words) separated by single DELIM character -F Select fields separated by DELIM regex - -O Output delimiter (default one space for -F, input delim for -f) + -O Output separator (default one space for -F, input delim for -f) -s Skip lines without delimiters */ #define FOR_cut @@ -213,7 +213,7 @@ void cut_main(void) error_exit("-s needs -Ff"); if ((toys.optflags&(FLAG_d|FLAG_f|FLAG_F))==FLAG_d) error_exit("-d needs -Ff"); - if (!TT.d) TT.d = (FLAG(F)) ? "[[:space:]][[:space:]]*" : "\t"; + if (!TT.d) TT.d = FLAG(F) ? "[[:space:]][[:space:]]*" : "\t"; if (FLAG(F)) xregcomp(&TT.reg, TT.d, REG_EXTENDED); if (!TT.O) { if (FLAG(F)) TT.O = " "; -- 2.39.2