From edc01c0455e894f0ba3ff1caa5b545110271d3ac Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 28 Apr 2010 08:55:35 +0000 Subject: Mikael: 27929 + doc: global aliases shouldn't trigger HIST_IGNORE_SPACE --- Src/lex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/lex.c') diff --git a/Src/lex.c b/Src/lex.c index 8f432515c..83257da8c 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -1774,7 +1774,7 @@ exalias(void) if (an && !an->inuse && ((an->node.flags & ALIAS_GLOBAL) || incmdpos || inalmore)) { inpush(an->text, INP_ALIAS, an); - if (an->text[0] == ' ') + if (an->text[0] == ' ' && !(an->node.flags & ALIAS_GLOBAL)) aliasspaceflag = 1; lexstop = 0; if (zshlextext == copy) -- cgit 1.4.1