← Commit list

a67a9627d

Denys Vlasenko
Denys Vlasenko
2009-08-20
FAILED Duration: 33s

Subject

hush: do not process options after non-option args

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/hush.c+1 -1
@@ -6461,7 +6461,7 @@ int hush_main(int argc, char **argv)
/* http://www.opengroup.org/onlinepubs/9699919799/utilities/sh.html */
builtin_argc = 0;
while (1) {
- opt = getopt(argc, argv, "c:xins"
+ opt = getopt(argc, argv, "+c:xins"
#if !BB_MMU
"<:$:R:V:"
# if ENABLE_HUSH_FUNCTIONS
shell/hush_test/hush-misc/opts1.right+2 -0
@@ -0,0 +1,2 @@
+Param1: >-10qwertyuiop<
+Done
shell/hush_test/hush-misc/opts1.tests+5 -0
@@ -0,0 +1,5 @@
+if test $# = 0; then
+ exec "$THIS_SH" $0 -10qwertyuiop
+fi
+echo "Param1: >$1<"
+echo Done