diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2024-12-13 19:31:41 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2024-12-13 19:31:41 +0100 |
commit | 96a230f17ba6cb1a7ad1e383d595424da02e87fc (patch) | |
tree | e361a03c59c1bde0d72c9b857b4b49e34e13c9f1 /coreutils/cut.c | |
parent | 9adafbc1184a413999e7c8bbfc2de85bda3e0b97 (diff) | |
download | busybox-w32-96a230f17ba6cb1a7ad1e383d595424da02e87fc.tar.gz busybox-w32-96a230f17ba6cb1a7ad1e383d595424da02e87fc.tar.bz2 busybox-w32-96a230f17ba6cb1a7ad1e383d595424da02e87fc.zip |
cut: fix handling of -d ''
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/cut.c')
-rw-r--r-- | coreutils/cut.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/cut.c b/coreutils/cut.c index e12c56732..e33626d7f 100644 --- a/coreutils/cut.c +++ b/coreutils/cut.c | |||
@@ -309,7 +309,7 @@ int cut_main(int argc UNUSED_PARAM, char **argv) | |||
309 | #endif | 309 | #endif |
310 | if (!odelim) | 310 | if (!odelim) |
311 | odelim = (opt & OPT_REGEX) ? " " : delim; | 311 | odelim = (opt & OPT_REGEX) ? " " : delim; |
312 | if (!delim || !*delim) | 312 | if (!delim) |
313 | delim = (opt & OPT_REGEX) ? "[[:space:]]+" : "\t"; | 313 | delim = (opt & OPT_REGEX) ? "[[:space:]]+" : "\t"; |
314 | 314 | ||
315 | // argc -= optind; | 315 | // argc -= optind; |