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

Re: Preexec & Printf



I had seen q in the modifier list @
http://zsh.sourceforge.net/Doc/Release/zsh_13.html#SEC45
and had tried that, but it still had the same problem with ${(q)*}, and
I don't see V and z in the modifier list, are they documented?
Additionally, where is the $* vs $1 documented, since I'm accustomed to
$*. Thx btw, it is working correctly now, I really appreciate it.

- Josh -

----- Original Message -----
From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
Date: Thursday, April 25, 2002 8:16 pm
Subject: 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 
> appearsliterally 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