ref: d5d1763b989a4146ebcea19c8f3c1ffa864ccb2d
parent: 08fb351545edb53522414774587b2b951d55f4f6
author: Ali Gholami Rudi <ali@rudi.ir>
date: Fri Aug 4 18:45:10 EDT 2017
tr: without an argument .tm outputs a blank line
--- a/tr.c
+++ b/tr.c
@@ -353,7 +353,7 @@
static void tr_tm(char **args)
{
- fprintf(stderr, "%s\n", args[1]);
+ fprintf(stderr, "%s\n", args[1] ? args[1] : "");
}
static void tr_so(char **args)