//config:config ASH_BASH_SOURCE_CURDIR
//config: bool "'source' and '.' builtins search current directory after $PATH"
//config: default n # do not encourage non-standard behavior
-//config: depends ASH_BASH_COMPAT
+//config: depends on ASH_BASH_COMPAT
//config: help
//config: This is not compliant with standards. Avoid if possible.
//config:
//config:config ASH_BASH_NOT_FOUND_HOOK
//config: bool "command_not_found_handle hook support"
//config: default y
-//config: depends ASH_BASH_COMPAT
+//config: depends on ASH_BASH_COMPAT
//config: help
//config: Enable support for the 'command_not_found_handle' hook function,
//config: from GNU bash, which allows for alternative command not found
//config: help
//config: Enable {abc,def} extension.
//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
+//config: depends on HUSH_BASH_COMPAT
+//config: help
+//config: This is not compliant with standards. Avoid if possible.
+//config:
//config:config HUSH_INTERACTIVE
//config: bool "Interactive mode"
//config: default y
arg_path = find_in_path(filename);
if (arg_path)
filename = arg_path;
- else /* add "if (!HUSH_BASH_SOURCE_CURDIR)" if users want bash-compat */ {
+ else if (!ENABLE_HUSH_BASH_SOURCE_CURDIR) {
errno = ENOENT;
bb_simple_perror_msg(filename);
return EXIT_FAILURE;