ref: 93ff33b4b44f297924ecb9f2f1de84646db0cd1b
parent: 03d1fce55d597a3b06cc7c078f510791ab90a430
author: Ali Gholami Rudi <[email protected]>
date: Sat Jul 27 14:31:20 EDT 2013
tr: ignore .lf with no arguments
--- a/tr.c
+++ b/tr.c
@@ -504,7 +504,8 @@
static void tr_lf(char **args)
{
- in_lf(args[2], eval(args[1], 0));
+ if (args[1])
+ in_lf(args[2], eval(args[1], 0));
}
static char *arg_regname(char *s, int len)