summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stty.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/stty.c b/stty.c
index 48c8100..15b5860 100644
--- a/stty.c
+++ b/stty.c
@@ -82,6 +82,10 @@ main(int argc, char *argv[])
if ((i.fd = open(optarg, O_RDONLY | O_NONBLOCK)) < 0)
err(1, "%s", optarg);
break;
+ case 'F':
+ if ((i.fd = open(optarg, O_RDONLY | O_NONBLOCK)) < 0)
+ err(1, "%s", optarg);
+ break;
case 'g':
fmt = GFLAG;
break;
@@ -157,6 +161,6 @@ void
usage(void)
{
- (void)fprintf(stderr, "usage: stty [-a|-e|-g] [-f file] [options]\n");
+ (void)fprintf(stderr, "usage: stty [-a|-e|-g] [-f/-F file] [options]\n");
exit (1);
}