File busybox-1.37.0-builtin-return-optional.patch of Package busybox

--- a/shell/ash.c	2024-09-26 16:00:52.000000000 +0200
+++ b/shell/ash.c	2024-10-08 09:42:30.229463072 +0200
@@ -129,6 +129,11 @@
 //config:	default y
 //config:	depends on SHELL_ASH
 //config:
+//config:config ASH_RETURN
+//config:       bool "return builtin"
+//config:       default y
+//config:       depends on SHELL_ASH
+//config:
 //config:config ASH_TEST
 //config:	bool "test builtin"
 //config:	default y
@@ -10234,7 +10239,9 @@
 	{ BUILTIN_REGULAR       "pwd"     , pwdcmd     },
 	{ BUILTIN_REGULAR       "read"    , readcmd    },
 	{ BUILTIN_SPEC_REG_ASSG "readonly", exportcmd  },
+#if ENABLE_ASH_RETURN
 	{ BUILTIN_SPEC_REG      "return"  , returncmd  },
+#endif
 	{ BUILTIN_SPEC_REG      "set"     , setcmd     },
 	{ BUILTIN_SPEC_REG      "shift"   , shiftcmd   },
 #if ENABLE_ASH_SLEEP
openSUSE Build Service is sponsored by