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

Re: PATCH: Re: PATCH: emulate (Re: Prompt fun)



Bart Schaefer wrote:
>                                            It occurs to me that printing
>the prompt can actually cause commands to be executed when `promptsubst'
>is set, because of $(...) substitutions.  Depending on what those commands
>do, that certainly could affect the behavior of a script.

It's up to the user.  The user sets the prompt, and if the user wants
to execute commands when printing the prompt then so be it.  Of course,
executing commands that have side effects would be a bad idea.

-zefram



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