1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-22 16:20:23 +02:00

35668: Improved fix for command/proc subst starting in alias.

Use input flag to suppress the unwanted backtracking.

Add test for the extra case covered.
This commit is contained in:
Peter Stephenson 2015-07-02 10:01:42 +01:00
parent dce1f33c02
commit 2afdb3985a
5 changed files with 30 additions and 12 deletions

View file

@ -591,7 +591,7 @@ inpoptop(void)
* history is before, but they're both pushed onto
* the input stack.
*/
if ((inbufflags & (INP_ALIAS|INP_HIST)) == INP_ALIAS)
if ((inbufflags & (INP_ALIAS|INP_HIST|INP_RAW_KEEP)) == INP_ALIAS)
zshlex_raw_back();
}
}