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

Re: allow zsh to source a script and then become interactive



Anthony Fletcher wrote on Fri, Apr 14, 2017 at 18:03:42 -0400:
> See the extra "teapot% " prompt that sneaks in. Instead run
> 
> PS1='' zsh -fis <<<"source /tmp/setup </dev/tty && exec </dev/tty"
> 
> and it does the desired thing. Brilliant.

You must be using an older version.  In current versions, PS1 is no
longer read from the environment, so you should set it to empty inside
the here string.



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