(mail_if): 'if t' is true is stdout is connected to a terminal.
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -111,8 +111,8 @@ mail_if (int argc, char **argv) | ... | @@ -111,8 +111,8 @@ mail_if (int argc, char **argv) |
111 | case 'r': /* Read mode */ | 111 | case 'r': /* Read mode */ |
112 | cond = strcmp(mode, "send") != 0; | 112 | cond = strcmp(mode, "send") != 0; |
113 | break; | 113 | break; |
114 | case 't': /* Reading from a terminal */ | 114 | case 't': /* Stdout is a terminal device? */ |
115 | cond = interactive; | 115 | cond = isatty (fileno (stdout)); |
116 | break; | 116 | break; |
117 | default: | 117 | default: |
118 | util_error(_("valid if arguments are: s | r | t")); | 118 | util_error(_("valid if arguments are: s | r | t")); | ... | ... |
-
Please register or sign in to post a comment