comparison toys/posix/tty.c @ 1012:bd1225873eb4

Fix usage: lines for a couple commands.
author Rob Landley <rob@landley.net>
date Sun, 18 Aug 2013 13:52:08 -0500
parents 786841fdb1e0
children
comparison
equal deleted inserted replaced
1011:6cb9e7142574 1012:bd1225873eb4
8 8
9 config TTY 9 config TTY
10 bool "tty" 10 bool "tty"
11 default y 11 default y
12 help 12 help
13 usage: tty [-s]
14
13 Show filename of terminal connected to stdin. 15 Show filename of terminal connected to stdin.
14 16
15 Prints "not a tty" and exits with nonzero status if no terminal 17 Prints "not a tty" and exits with nonzero status if no terminal
16 is connected to stdin. 18 is connected to stdin.
17 19
18 -s silent mode 20 -s silent, exit code only
19 */ 21 */
20 22
21 #include "toys.h" 23 #include "toys.h"
22 24
23 void tty_main(void) 25 void tty_main(void)