Exit from within a FOR, WHILE or UNTIL loop. If N is specified,
break N levels.
$END
+#include <config.h>
+
+#if defined (HAVE_UNISTD_H)
+#include <unistd.h>
+#endif
#include "../shell.h"
+#include "common.h"
extern char *this_command_name;
/* Set up to break x levels, where x defaults to 1, but can be specified
as the first argument. */
+int
break_builtin (list)
WORD_LIST *list;
{
/* Set up to continue x levels, where x defaults to 1, but can be specified
as the first argument. */
+int
continue_builtin (list)
WORD_LIST *list;
{
{
#if defined (BREAK_COMPLAINS)
if (!loop_level)
- builtin_error ("Only meaningful in a `for', `while', or `until' loop");
+ builtin_error ("only meaningful in a `for', `while', or `until' loop");
#endif /* BREAK_COMPLAINS */
return (loop_level);