From 2738dc4bc2467e0082ba86682aef4a25ed531c53 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 1 Apr 2023 21:44:31 -0400 Subject: fix unalias -a --- alias.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alias.c b/alias.c index bc3e604..ce906ba 100644 --- a/alias.c +++ b/alias.c @@ -140,7 +140,7 @@ int unalias_main(int argc, char **argv) int all = 0; int c = 0; - while (getopt(argc, argv, "a") != -1) { + while ((c = getopt(argc, argv, "a")) != -1) { switch (c) { case 'a': all = 1; -- cgit v1.2.1