1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

zsh-workers/7577

This commit is contained in:
Tanaka Akira 1999-08-31 13:59:42 +00:00
parent bf0452b632
commit d160110646
2 changed files with 5 additions and 4 deletions

View file

@ -606,8 +606,8 @@ item(tt(%))(
Expand all tt(%) escapes in the resulting words in the same way as in
prompts (see noderef(Prompt Expansion)). If this flag is given twice,
full prompt expansion is done on the resulting words, depending on the
setting of the tt(PROMPT_SUBST) and tt(PROMPT_BANG) options. The
tt(PROMPT_PERCENT) option is temporarily turned on in any case.
setting of the tt(PROMPT_PERCENT), tt(PROMPT_SUBST) and
tt(PROMPT_BANG) options.
)
item(tt(X))(
With this flag parsing errors occuring with the tt(Q) flag or the

View file

@ -1662,9 +1662,10 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub)
int ops = opts[PROMPTSUBST], opb = opts[PROMPTBANG];
int opp = opts[PROMPTPERCENT], len;
opts[PROMPTPERCENT] = 1;
if (presc < 2)
if (presc < 2) {
opts[PROMPTPERCENT] = 1;
opts[PROMPTSUBST] = opts[PROMPTBANG] = 0;
}
if (isarr) {
char **ap;