[hackers] [sbase] find: Make -H and -L flag handling clearer || Michael Forney
commit 48d04ae446b39c0e230ec4e8c38d25865fb662db
Author: Michael Forney <mforney_AT_mforney.org>
AuthorDate: Tue Sep 25 17:57:51 2018 -0700
Commit: Michael Forney <mforney_AT_mforney.org>
CommitDate: Tue Sep 25 19:16:19 2018 -0700
find: Make -H and -L flag handling clearer
diff --git a/find.c b/find.c
index e095015..03889a8 100644
--- a/find.c
+++ b/find.c
_AT_@ -1023,9 +1023,16 @@ main(int argc, char **argv)
struct tok *t;
ARGBEGIN {
- case 'H': gflags.l = !(gflags.h = 1); break;
- case 'L': gflags.h = !(gflags.l = 1); break;
- default : usage();
+ case 'H':
+ gflags.h = 1;
+ gflags.l = 0;
+ break;
+ case 'L':
+ gflags.l = 1;
+ gflags.h = 0;
+ break;
+ default:
+ usage();
} ARGEND
paths = argv;
Received on Wed Sep 26 2018 - 04:21:44 CEST
This archive was generated by hypermail 2.3.0
: Wed Sep 26 2018 - 04:24:21 CEST