aboutsummaryrefslogtreecommitdiff
path: root/Config.in
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2020-06-14 10:17:04 +0100
committerRon Yorston <rmy@pobox.com>2020-06-14 10:17:04 +0100
commitf41697493de1a25d0f56930d81cf9560172ce7b7 (patch)
tree998b60552725808730478c3288f2452a40ffe7b8 /Config.in
parentb1a5034ca852efe2c24212db77d7b0b2660a687b (diff)
downloadbusybox-w32-f41697493de1a25d0f56930d81cf9560172ce7b7.tar.gz
busybox-w32-f41697493de1a25d0f56930d81cf9560172ce7b7.tar.bz2
busybox-w32-f41697493de1a25d0f56930d81cf9560172ce7b7.zip
win32: enable globbing by default
Change how busybox.exe expands wildcards on the command line. When globbing is enabled at compile time provide an implementation of _setargv(), which is run early during startup of C programs. This: - enables globbing by setting _dowildcard to -1 - checks for the presence of the environment BB_GLOBBING - if it exists and is set to 0 disables globbing - if it doesn't exist sets BB_GLOBBING=0 but continues to apply Windows' globbing in the current process The consequences of this are: - When busybox.exe is initially run from a Command Prompt Windows' globbing is applied; - Windows' globbing is turned off for future child processes, thus allowing the shell re-execute busybox.exe without it interfering with wildcards; - this behaviour can be overridden by setting BB_GLOBBING explicitly. Globbing can still be disabled at compile time if required. In that case BB_GLOBBING has no effect. With these changes globbing can be enabled by default and BusyBox will do the right thing in most circumstances. (See GitHub issues #172 and #189.)
Diffstat (limited to 'Config.in')
-rw-r--r--Config.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/Config.in b/Config.in
index df8ecc3f0..d18f3dac5 100644
--- a/Config.in
+++ b/Config.in
@@ -387,15 +387,15 @@ comment 'Settings for MINGW32'
387 387
388config GLOBBING 388config GLOBBING
389 bool "Allow busybox.exe to expand wildcards" 389 bool "Allow busybox.exe to expand wildcards"
390 default n 390 default y
391 depends on PLATFORM_MINGW32 391 depends on PLATFORM_MINGW32
392 help 392 help
393 In Microsoft Windows expansion of wildcards on the command line 393 In Microsoft Windows expansion of wildcards on the command line
394 ('globbing') is handled by the C runtime while the BusyBox shell 394 ('globbing') is handled by the C runtime while the BusyBox shell
395 does its own wildcard expansion. For best results when using the 395 does its own wildcard expansion. In most circumstances BusyBox
396 shell globbing by the C runtime should be turned off. If you want 396 will do the right thing. If it doesn't or if you don't need to
397 the BusyBox binary to handle wildcard expansion using the C runtime 397 use BusyBox applets from the Windows Command Prompt you can stop
398 set this to 'Y'. 398 busybox.exe from expanding wildcards by setting this to 'N'.
399 399
400choice 400choice
401 prompt "Random number generator" 401 prompt "Random number generator"