aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/hush.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 65f08659f..77f90f82f 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -10163,7 +10163,8 @@ int hush_main(int argc, char **argv)
10163 /* http://www.opengroup.org/onlinepubs/9699919799/utilities/sh.html */ 10163 /* http://www.opengroup.org/onlinepubs/9699919799/utilities/sh.html */
10164 flags = (argv[0] && argv[0][0] == '-') ? OPT_login : 0; 10164 flags = (argv[0] && argv[0][0] == '-') ? OPT_login : 0;
10165 while (1) { 10165 while (1) {
10166 int opt = getopt(argc, argv, "+cexinsl" 10166 int opt = getopt(argc, argv, "+" /* stop at 1st non-option */
10167 "cexinsl"
10167#if !BB_MMU 10168#if !BB_MMU
10168 "<:$:R:V:" 10169 "<:$:R:V:"
10169# if ENABLE_HUSH_FUNCTIONS 10170# if ENABLE_HUSH_FUNCTIONS
@@ -10255,12 +10256,13 @@ int hush_main(int argc, char **argv)
10255 } 10256 }
10256# endif 10257# endif
10257#endif 10258#endif
10258 case 'n': 10259 /*case '?': invalid option encountered (set_mode('?') will fail) */
10259 case 'x': 10260 /*case 'n':*/
10260 case 'e': 10261 /*case 'x':*/
10262 /*case 'e':*/
10263 default:
10261 if (set_mode(1, opt, NULL) == 0) /* no error */ 10264 if (set_mode(1, opt, NULL) == 0) /* no error */
10262 break; 10265 break;
10263 default:
10264 bb_show_usage(); 10266 bb_show_usage();
10265 } 10267 }
10266 } /* option parsing loop */ 10268 } /* option parsing loop */