Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh 5.2-test-1



On Dec 4,  5:31pm, Peter Stephenson wrote:
} Subject: Re: zsh 5.2-test-1
}
} On Sun, 4 Dec 2016 09:19:41 -0800
} Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
} > Looks more to me as if PS1 is being restored despite the assignment to
} > PROMPT, possibly because PS1 has been exported into the environment by
} > the test harness?
} 
} Oh, that "+" in the diff might refer to all the following lines, in
} which case you're probably right.

I'm not sure assigning it inside the here-string is soon enough; a shell
with -is on the command line is going to start printing prompts as soon
as it gets that first input newline.

Src/zsh -fis <<<'
echo second line
'
torch% %
torch% second line
torch% %
torch% %                                

Might also be a good idea to do

  ... $ZTST_testdir/../Src/zsh +o PROMPT_SP -fis ...

instead of having the unsetopt inside the here-string.



Messages sorted by: Reverse Date, Date, Thread, Author