mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-24 04:50:27 +02:00
fix for (z) flag, don't take # as comment (12228)
This commit is contained in:
parent
cc2213b340
commit
d861bb9805
3 changed files with 10 additions and 4 deletions
|
|
@ -673,7 +673,7 @@ gettok(void)
|
|||
/* chars in initial position in word */
|
||||
|
||||
if (c == hashchar &&
|
||||
(isset(INTERACTIVECOMMENTS) ||
|
||||
((zleparse != 3 && isset(INTERACTIVECOMMENTS)) ||
|
||||
(!zleparse && !expanding &&
|
||||
(!interact || unset(SHINSTDIN) || strin)))) {
|
||||
/* History is handled here to prevent extra *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue