@optique/core 1.0.0-dev.1972 → 1.0.0-dev.1974

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -348,6 +348,12 @@ function _${programName.replace(/[^a-zA-Z0-9]/g, "_")} () {
348
348
  pattern="\${pattern//%3A/:}"; pattern="\${pattern//%25/%}"
349
349
  has_file_completion=1
350
350
 
351
+ # Native completion helpers expect normal zsh glob grouping even if
352
+ # the caller enabled SH_GLOB in their shell options.
353
+ local __was_sh_glob=0
354
+ [[ -o sh_glob ]] && __was_sh_glob=1
355
+ unsetopt sh_glob
356
+
351
357
  # Enable glob_dots when hidden files are requested so that
352
358
  # _files and _directories include dot-prefixed entries
353
359
  local __was_glob_dots=0
@@ -403,6 +409,7 @@ function _${programName.replace(/[^a-zA-Z0-9]/g, "_")} () {
403
409
 
404
410
  # Restore PREFIX and glob_dots to their previous state
405
411
  PREFIX="\$__saved_prefix"
412
+ if [[ "\$__was_sh_glob" == "1" ]]; then setopt sh_glob; else unsetopt sh_glob; fi
406
413
  if [[ "\$__was_glob_dots" == "1" ]]; then setopt glob_dots; else unsetopt glob_dots; fi
407
414
  else
408
415
  # Regular literal completion
@@ -348,6 +348,12 @@ function _${programName.replace(/[^a-zA-Z0-9]/g, "_")} () {
348
348
  pattern="\${pattern//%3A/:}"; pattern="\${pattern//%25/%}"
349
349
  has_file_completion=1
350
350
 
351
+ # Native completion helpers expect normal zsh glob grouping even if
352
+ # the caller enabled SH_GLOB in their shell options.
353
+ local __was_sh_glob=0
354
+ [[ -o sh_glob ]] && __was_sh_glob=1
355
+ unsetopt sh_glob
356
+
351
357
  # Enable glob_dots when hidden files are requested so that
352
358
  # _files and _directories include dot-prefixed entries
353
359
  local __was_glob_dots=0
@@ -403,6 +409,7 @@ function _${programName.replace(/[^a-zA-Z0-9]/g, "_")} () {
403
409
 
404
410
  # Restore PREFIX and glob_dots to their previous state
405
411
  PREFIX="\$__saved_prefix"
412
+ if [[ "\$__was_sh_glob" == "1" ]]; then setopt sh_glob; else unsetopt sh_glob; fi
406
413
  if [[ "\$__was_glob_dots" == "1" ]]; then setopt glob_dots; else unsetopt glob_dots; fi
407
414
  else
408
415
  # Regular literal completion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/core",
3
- "version": "1.0.0-dev.1972+eebf7c57",
3
+ "version": "1.0.0-dev.1974+3f35acc7",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",