diff options
author | davidovski <david@davidovski.xyz> | 2023-01-15 12:39:02 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-01-15 12:39:02 +0000 |
commit | e267f2307d5756c44c81c4bfb5de89ad7326bcc8 (patch) | |
tree | e835cc8887599d4399995775575cbf67de3fecae /stty.c | |
parent | ec2404975169d81f6443814415cba36d01d91cb6 (diff) |
Add -F option
Diffstat (limited to 'stty.c')
-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); } |