commit: 314cf1e13a7d9df2bbd7a4ca857244d6a97dd17d
parent 734299a6953f340d05f2ab99133267c34eb22b3e
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 28 Sep 2024 20:00:43 +0200
cmd/expr: add missing break; in getopt-switch
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/cmd/expr.y b/cmd/expr.y
@@ -296,8 +296,10 @@ main(int argc, char *argv[])
break;
case ':':
fprintf(stderr, "expr: error: Missing operand for option: '-%c'\n", optopt);
+ break;
case '?':
fprintf(stderr, "expr: error: Unrecognised option: '-%c'\n", optopt);
+ break;
default:
errx(ERR_EXIT,
"usage: expr [-e] expression\n");