mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-29 19:12:20 +01:00
ALL_EXPORT tweaks.
This commit is contained in:
parent
3d68002599
commit
ad5f9584c1
3 changed files with 20 additions and 1 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2000-11-25 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 13192: Completion/Core/compinit, Src/params.c: Turn off
|
||||
ALL_EXPORT during completion; don't export arrays or hashes, even
|
||||
with ALL_EXPORT.
|
||||
|
||||
2000-11-22 Tanaka Akira <akr@zsh.org>
|
||||
|
||||
* 13181: Completion/Debian/_apt: add an action for _alternative.
|
||||
|
|
|
|||
|
|
@ -134,6 +134,7 @@ _comp_options=(
|
|||
NO_shglob
|
||||
NO_ksharrays
|
||||
NO_cshnullglob
|
||||
NO_allexport
|
||||
)
|
||||
|
||||
# These can hold names of functions that are to be called before/after all
|
||||
|
|
|
|||
14
Src/params.c
14
Src/params.c
|
|
@ -1484,7 +1484,19 @@ export_param(Param pm)
|
|||
{
|
||||
char buf[(sizeof(zlong) * 8) + 4], *val;
|
||||
|
||||
if (PM_TYPE(pm->flags) == PM_INTEGER)
|
||||
if (PM_TYPE(pm->flags) & (PM_ARRAY|PM_HASHED)) {
|
||||
#if 0 /* Requires changes elsewhere in params.c and builtin.c */
|
||||
if (emulation == EMULATE_KSH /* isset(KSHARRAYS) */) {
|
||||
struct value v;
|
||||
v.isarr = 1;
|
||||
v.inv = 0;
|
||||
v.start = 0;
|
||||
v.end = -1;
|
||||
val = getstrvalue(&v);
|
||||
} else
|
||||
#endif
|
||||
return;
|
||||
} else if (PM_TYPE(pm->flags) == PM_INTEGER)
|
||||
convbase(val = buf, pm->gets.ifn(pm), pm->ct);
|
||||
else if (pm->flags & (PM_EFLOAT|PM_FFLOAT))
|
||||
val = convfloat(pm->gets.ffn(pm), pm->ct,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue