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

Re: Preexec & Printf



On Thu, 25 Apr 2002, Joshua Symons wrote:

> preexec () {
>         print -Pn "\e]0;%m:%l   -   ${(z)1} \a"
> }
> [(ichirou:152:pts/33)~ %] printf '^[[32;40mwith quotes\n'
> [32;40mwith quotes
> ' with quotes

Your specific problem there is that the titlebar escape sequence appears
literally in the command that you're trying to put into the titlebar, so
strange things happen.  I missed that before.  Try ${(qVz)1}.



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