diff options
-rw-r--r-- | stty.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); } |