sbase

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

commit 5b5c6be776a4678997dcd84ae612afc2b350cefc
parent c405152c29fe5e6d9c4be269e211835ebe7cb325
Author: FRIGN <dev@frign.de>
Date:   Mon Mar  7 11:18:30 +0100

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

Diffstat:
sort.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':