tr: change delete behaviour
when one argument is specified use delete behaviour again Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
This commit is contained in:
4
tr.c
4
tr.c
@@ -137,8 +137,8 @@ main(int argc, char *argv[])
|
|||||||
if(argc == 0)
|
if(argc == 0)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
if(dflag) {
|
if(dflag || argc == 1) {
|
||||||
if(argc >= 2)
|
if(argc != 1)
|
||||||
usage();
|
usage();
|
||||||
parsemapping(argv[0], NULL, mappings);
|
parsemapping(argv[0], NULL, mappings);
|
||||||
mapfunc = maptonull;
|
mapfunc = maptonull;
|
||||||
|
Reference in New Issue
Block a user