From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22461 invoked from network); 26 Apr 2002 02:13:51 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 26 Apr 2002 02:13:51 -0000 Received: (qmail 24594 invoked by alias); 26 Apr 2002 02:13:35 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4881 Received: (qmail 24582 invoked from network); 26 Apr 2002 02:13:34 -0000 From: "Joshua Symons" To: Bart Schaefer Cc: zsh-users@sunsite.dk Message-ID: <232431fbb3.1fbb323243@mysun.com> Date: Thu, 25 Apr 2002 21:10:54 -0500 X-Mailer: Netscape Webmail MIME-Version: 1.0 Content-Language: en Subject: Re: Preexec & Printf X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit Thx for all the help Geoff & Bart. I think I'll just stick with ${(qV)1} for now and change if necessary, it appears to be working with everything. I'll try switching to ${(qV)2} if I switch up to 4.0.4. Thx again. - Josh - ----- Original Message ----- From: Bart Schaefer Date: Thursday, April 25, 2002 9:06 pm Subject: Re: Preexec & Printf > On Thu, 25 Apr 2002, Joshua Symons wrote: > > > ${(qV)1} appears to be doing the job in 3.1.9, in 3.0.8 (the version > > that comes with solaris 9) or 3.0.6 (the version that comes with > solaris> 8) it gives a syntax error. > > However with ${(QV)1} I still get garbage into my shell. > > ${(q)...} adds a level of quoting, and ${(Q)...} removes a level. Per > Geoff's message, the (q) is "working" because it quotes the > backslashesand so forth, protecting e.g. \a from being emitted as > control-G by print. > > However, what you said you wanted was to remove the quotes, so > that's why > I suggested (Q). That doesn't solve the backslashing problem. > > You could try ${(q)${QV)1}} which would first remove the quotes and > thenescape the backslashes, or you can stick with just ${(qV)1}. > >