Hi, It turns out that HUSH_LINENO_VAR works fine without HUSH_BASH_COMPAT. Maybe we could allow configuring such a build?
--
--- 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