Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
675b0afa
...
675b0afafeea42c97aa2392467f8e13146fabe29
authored
2004-02-03 13:13:20 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mail_if): 'if t' is true is stdout is connected to a terminal.
1 parent
749eff46
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
mail/if.c
mail/if.c
View file @
675b0af
...
...
@@ -111,8 +111,8 @@ mail_if (int argc, char **argv)
case
'r'
:
/* Read mode */
cond
=
strcmp
(
mode
,
"send"
)
!=
0
;
break
;
case
't'
:
/*
Reading from a terminal
*/
cond
=
i
nteractive
;
case
't'
:
/*
Stdout is a terminal device?
*/
cond
=
i
satty
(
fileno
(
stdout
))
;
break
;
default:
util_error
(
_
(
"valid if arguments are: s | r | t"
));
...
...
Please
register
or
sign in
to post a comment