commit a8f45b45681d3ca515f147ef4623266ba50430b8
Author: Hiltjo Posthuma <[email protected]>
Date:   Sat Apr 12 12:56:56 2014 +0200

    tr: change delete behaviour
    
    when one argument is specified use delete behaviour again
    
    Signed-off-by: Hiltjo Posthuma <[email protected]>

diff --git a/tr.c b/tr.c
index aad2245..32e805a 100644
--- 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;


Reply via email to