summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-01-15 12:39:02 +0000
committerdavidovski <david@davidovski.xyz>2023-01-15 12:39:02 +0000
commite267f2307d5756c44c81c4bfb5de89ad7326bcc8 (patch)
treee835cc8887599d4399995775575cbf67de3fecae
parentec2404975169d81f6443814415cba36d01d91cb6 (diff)
Add -F option
-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);
}