mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-22 00:21:27 +01:00
18578: 18559 caused typeset failures
This commit is contained in:
parent
46557b1e1c
commit
10be59abca
2 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-05-24 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
|
||||
|
||||
* 18578: Src/builtin.c: changet to OPT_ISSET() in 18559
|
||||
affected some tests which should have been using OPT_PLUS().
|
||||
|
||||
2003-05-22 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 18569: Src/subst.c: error with numeric sorting of parameters;
|
||||
|
@ -83,7 +88,7 @@
|
|||
Completion/Unix/Command/_ssh: get hostname from IPREFIX instead
|
||||
of words[CURRENT] to avoid quote characters
|
||||
|
||||
* Michał Politowski: users/6080: Completion/Unix/Command/_ssh:
|
||||
* MichaÅ Politowski: users/6080: Completion/Unix/Command/_ssh:
|
||||
remove one level of quoting on files before using with remote ls
|
||||
|
||||
2003-05-07 Peter Stephenson <pws@csr.com>
|
||||
|
@ -986,7 +991,7 @@
|
|||
* unposted: Completion/Unix/Command/_lynx,
|
||||
Completion/Unix/Command/_links: minor bug fix (missing -g)
|
||||
|
||||
* Thomas Köhler: 17610: Completion/Unix/Command/_ssh: also pass
|
||||
* Thomas Köhler: 17610: Completion/Unix/Command/_ssh: also pass
|
||||
through -F option
|
||||
|
||||
* 17607: Completion/Unix/Command/_ssh: pass through options such as
|
||||
|
|
|
@ -2145,7 +2145,7 @@ bin_typeset(char *name, char **argv, Options ops, int func)
|
|||
}
|
||||
|
||||
if (!(OPT_ISSET(ops,'g') || OPT_ISSET(ops,'x') || OPT_ISSET(ops,'m')) ||
|
||||
OPT_ISSET(ops,'g') == 2 || *name == 'l' ||
|
||||
OPT_PLUS(ops,'g') || *name == 'l' ||
|
||||
(!isset(GLOBALEXPORT) && !OPT_ISSET(ops,'g')))
|
||||
on |= PM_LOCAL;
|
||||
|
||||
|
@ -2263,7 +2263,7 @@ bin_typeset(char *name, char **argv, Options ops, int func)
|
|||
returnval = 1;
|
||||
continue;
|
||||
}
|
||||
if (OPT_PLUS(ops,'m') == 2 && !asg->value) {
|
||||
if (OPT_PLUS(ops,'m') && !asg->value) {
|
||||
scanmatchtable(paramtab, pprog, on|roff, 0,
|
||||
paramtab->printnode, printflags);
|
||||
continue;
|
||||
|
@ -2351,7 +2351,7 @@ bin_functions(char *name, char **argv, Options ops, int func)
|
|||
int on = 0, off = 0, pflags = 0;
|
||||
|
||||
/* Do we have any flags defined? */
|
||||
if (OPT_ISSET(ops,'u') == 2)
|
||||
if (OPT_PLUS(ops,'u'))
|
||||
off |= PM_UNDEFINED;
|
||||
else if (OPT_MINUS(ops,'u') || OPT_ISSET(ops,'X'))
|
||||
on |= PM_UNDEFINED;
|
||||
|
|
Loading…
Reference in a new issue