]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - builtins/break.def
bash-5.0 distribution sources and documentation
[thirdparty/bash.git] / builtins / break.def
index 232ac1a71fee54a6be561cdf89f524f63e9fcd3c..876d0635d5112f03879f9a9670b630b07c17b279 100644 (file)
@@ -43,11 +43,9 @@ $END
 #include "../bashintl.h"
 
 #include "../shell.h"
+#include "../execute_cmd.h"
 #include "common.h"
 
-extern char *this_command_name;
-extern int posixly_correct;
-
 static int check_loop_level __P((void));
 
 /* The depth of while's and until's. */
@@ -67,6 +65,8 @@ break_builtin (list)
 {
   intmax_t newbreak;
 
+  CHECK_HELPOPT (list);
+
   if (check_loop_level () == 0)
     return (EXECUTION_SUCCESS);
 
@@ -107,6 +107,8 @@ continue_builtin (list)
 {
   intmax_t newcont;
 
+  CHECK_HELPOPT (list);
+
   if (check_loop_level () == 0)
     return (EXECUTION_SUCCESS);