aboutsummaryrefslogtreecommitdiff
path: root/coreutils/cut.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/cut.c')
-rw-r--r--coreutils/cut.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/cut.c b/coreutils/cut.c
index e952dc17b..1acbb513e 100644
--- a/coreutils/cut.c
+++ b/coreutils/cut.c
@@ -209,11 +209,11 @@ int cut_main(int argc UNUSED_PARAM, char **argv)
209// argc -= optind; 209// argc -= optind;
210 argv += optind; 210 argv += optind;
211 if (!(opt & (CUT_OPT_BYTE_FLGS | CUT_OPT_CHAR_FLGS | CUT_OPT_FIELDS_FLGS))) 211 if (!(opt & (CUT_OPT_BYTE_FLGS | CUT_OPT_CHAR_FLGS | CUT_OPT_FIELDS_FLGS)))
212 bb_error_msg_and_die("expected a list of bytes, characters, or fields"); 212 bb_simple_error_msg_and_die("expected a list of bytes, characters, or fields");
213 213
214 if (opt & CUT_OPT_DELIM_FLGS) { 214 if (opt & CUT_OPT_DELIM_FLGS) {
215 if (ltok[0] && ltok[1]) { /* more than 1 char? */ 215 if (ltok[0] && ltok[1]) { /* more than 1 char? */
216 bb_error_msg_and_die("the delimiter must be a single character"); 216 bb_simple_error_msg_and_die("the delimiter must be a single character");
217 } 217 }
218 delim = ltok[0]; 218 delim = ltok[0];
219 } 219 }
@@ -288,7 +288,7 @@ int cut_main(int argc UNUSED_PARAM, char **argv)
288 288
289 /* make sure we got some cut positions out of all that */ 289 /* make sure we got some cut positions out of all that */
290 if (nlists == 0) 290 if (nlists == 0)
291 bb_error_msg_and_die("missing list of positions"); 291 bb_simple_error_msg_and_die("missing list of positions");
292 292
293 /* now that the lists are parsed, we need to sort them to make life 293 /* now that the lists are parsed, we need to sort them to make life
294 * easier on us when it comes time to print the chars / fields / lines 294 * easier on us when it comes time to print the chars / fields / lines