From 10be59abca92fc2990a4f3985007b81f34fc2fcd Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sat, 24 May 2003 22:46:35 +0000 Subject: 18578: 18559 caused typeset failures --- ChangeLog | 9 +++++++-- Src/builtin.c | 6 +++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index c996cb436..ec8b99b2f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-05-24 Peter Stephenson + + * 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 * 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 @@ -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 diff --git a/Src/builtin.c b/Src/builtin.c index 96ed1e61b..f8a713152 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -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; -- cgit 1.4.1