diff options
| author | Philippe Altherr <philippe.altherr@gmail.com> | 2026-03-31 14:50:08 -0700 |
|---|---|---|
| committer | Bart Schaefer <schaefer@zsh.org> | 2026-03-31 18:32:12 -0700 |
| commit | d8d74ef6820ad1f5b721237a7f2c5e45e47d39c3 (patch) | |
| tree | 28e7991e77cc9b07b8a23beaa28f4e2b952551aa /Src/zsh.h | |
| parent | 54252: allow single dot as a valid (yet incomplete) parameter name (diff) | |
| download | zsh-d8d74ef6820ad1f5b721237a7f2c5e45e47d39c3.tar zsh-d8d74ef6820ad1f5b721237a7f2c5e45e47d39c3.tar.gz zsh-d8d74ef6820ad1f5b721237a7f2c5e45e47d39c3.tar.bz2 zsh-d8d74ef6820ad1f5b721237a7f2c5e45e47d39c3.tar.lz zsh-d8d74ef6820ad1f5b721237a7f2c5e45e47d39c3.tar.xz zsh-d8d74ef6820ad1f5b721237a7f2c5e45e47d39c3.tar.zst zsh-d8d74ef6820ad1f5b721237a7f2c5e45e47d39c3.zip | |
54261: `unset -n` removes named-reference type as well as removes referent
Diffstat (limited to 'Src/zsh.h')
| -rw-r--r-- | Src/zsh.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1927,7 +1927,10 @@ struct tieddata { #define PM_DONTIMPORT (1<<22) /* do not import this variable */ #define PM_DECLARED (1<<22) /* explicitly named with typeset */ #define PM_RESTRICTED (1<<23) /* cannot be changed in restricted mode */ -#define PM_UNSET (1<<24) /* has null value */ +#define PM_UNSET (1<<24) /* If PM_DECLARED is also present, parameter + * has null value. Otherwise, parameter was + * unset. + */ #define PM_DEFAULTED (PM_DECLARED|PM_UNSET) #define PM_REMOVABLE (1<<25) /* special can be removed from paramtab */ #define PM_AUTOLOAD (1<<26) /* autoloaded from module */ |
