sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 5ad71a466bc14392e634583fc6ed9d37a2693952
parent 3debc5e064987974f0dfc098f29ae6a48b712a4d
Author: FRIGN <dev@frign.de>
Date:   Mon,  7 Mar 2016 11:18:30 +0100

Error out when giving an empty delimiter to sort(1)

Diffstat:
Msort.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/sort.c b/sort.c @@ -364,6 +364,8 @@ main(int argc, char *argv[]) break; case 't': fieldsep = EARGF(usage()); + if (!*fieldsep) + eprintf("empty delimiter\n"); fieldseplen = unescape(fieldsep); break; case 'u':