1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-29 05:21:00 +01:00

34220: new $(...) handling needs to back up over alias expansion

This commit is contained in:
Peter Stephenson 2015-01-10 20:28:57 +00:00
parent 81ad9ed766
commit 3b32abafdb
2 changed files with 9 additions and 0 deletions

View file

@ -1,5 +1,8 @@
2015-01-10 Peter Stephenson <p.w.stephenson@ntlworld.com> 2015-01-10 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 34220: Src/input.c: new $(...) parsing didn't back up over
alias expansions.
* unposted: Src/context.c: update copyright. * unposted: Src/context.c: update copyright.
* 34195: Thomas Mitterfellner: Completion/Linux/Command/_qdbus: * 34195: Thomas Mitterfellner: Completion/Linux/Command/_qdbus:

View file

@ -537,6 +537,12 @@ inpush(char *str, int flags, Alias inalias)
static void static void
inpoptop(void) inpoptop(void)
{ {
if (!lexstop) {
inbufflags &= ~INP_ALCONT;
while (inbufptr > inbuf)
inungetc(inbufptr[-1]);
}
if (inbuf && (inbufflags & INP_FREE)) if (inbuf && (inbufflags & INP_FREE))
free(inbuf); free(inbuf);