sbase

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

commit a8f45b45681d3ca515f147ef4623266ba50430b8
parent 16cf92119f99d51c975ca2109e14cdb777b00ede
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 12 Apr 2014 12:56:56 +0200

tr: change delete behaviour

when one argument is specified use delete behaviour again

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

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

diff --git a/tr.c b/tr.c @@ -137,8 +137,8 @@ main(int argc, char *argv[]) if(argc == 0) usage(); - if(dflag) { - if(argc >= 2) + if(dflag || argc == 1) { + if(argc != 1) usage(); parsemapping(argv[0], NULL, mappings); mapfunc = maptonull;