[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    HUSH_LINENO_VAR without HUSH_BASH_COMPAT
From:       deweloper () wp ! pl
Date:       2021-02-05 16:27:42
Message-ID: 20210205172742.00e464e5 () mocarz ! dom
[Download RAW message or body]

Hi,

It turns out that HUSH_LINENO_VAR works fine without HUSH_BASH_COMPAT.
Maybe we could allow configuring such a build?

-- 

[Attachment #3 (text/x-patch)]

--- a/shell/hush.c	2019-06-10 11:09:31.000000000 +0200
+++ b/shell/hush.c	2019-10-20 17:03:38.674286692 +0200
@@ -118,11 +118,6 @@
 //config:	help
 //config:	Enable {abc,def} extension.
 //config:
-//config:config HUSH_LINENO_VAR
-//config:	bool "$LINENO variable"
-//config:	default y
-//config:	depends on HUSH_BASH_COMPAT
-//config:
 //config:config HUSH_BASH_SOURCE_CURDIR
 //config:	bool "'source' and '.' builtins search current directory after $PATH"
 //config:	default n   # do not encourage non-standard behavior
@@ -130,6 +125,11 @@
 //config:	help
 //config:	This is not compliant with standards. Avoid if possible.
 //config:
+//config:config HUSH_LINENO_VAR
+//config:	bool "$LINENO variable"
+//config:	default y
+//config:	depends on HUSH || SH_IS_HUSH || BASH_IS_HUSH
+//config:
 //config:config HUSH_INTERACTIVE
 //config:	bool "Interactive mode"
 //config:	default y


_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic