From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24105 invoked from network); 9 Sep 2003 17:14:59 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 9 Sep 2003 17:14:59 -0000 Received: (qmail 10392 invoked by alias); 9 Sep 2003 17:14:41 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6555 Received: (qmail 10382 invoked from network); 9 Sep 2003 17:14:41 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 9 Sep 2003 17:14:41 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [192.18.98.43] by sunsite.dk (MessageWall 1.0.8) with SMTP; 9 Sep 2003 17:14:40 -0000 Received: from centralmail1brm.Central.Sun.COM ([129.147.62.1]) by brmea-mail-2.sun.com (8.12.9/8.12.9) with ESMTP id h89HEXjr023227 for ; Tue, 9 Sep 2003 11:14:33 -0600 (MDT) Received: from dabulls.Central.Sun.COM (dabulls.Central.Sun.COM [172.20.25.52]) by centralmail1brm.Central.Sun.COM (8.12.9+Sun/8.12.9/ENSMAIL,v2.2) with ESMTP id h89HEX6c022615 for ; Tue, 9 Sep 2003 11:14:33 -0600 (MDT) Received: from dabulls.Central.Sun.COM (localhost [127.0.0.1]) by dabulls.Central.Sun.COM (8.12.9+Sun/8.12.9) with ESMTP id h89HE2Vh023699 for ; Tue, 9 Sep 2003 11:14:02 -0600 (MDT) Received: (from talley@localhost) by dabulls.Central.Sun.COM (8.12.9+Sun/8.12.9/Submit) id h89HE0E3023561 for zsh-users@sunsite.dk; Tue, 9 Sep 2003 13:14:00 -0400 (EDT) Date: Tue, 9 Sep 2003 13:14:00 -0400 From: Steve Talley To: Zsh Users Subject: Re: Escaping shell characters in a string Message-ID: <20030909171400.GG6706@.central.sun.com> References: <20030909165201.GE6706@.central.sun.com> <1030909170633.ZM973@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="O8XZ+2Hy8Kj8wLPZ" Content-Disposition: inline In-Reply-To: <1030909170633.ZM973@candle.brasslantern.com> User-Agent: Mutt/1.3.28i --O8XZ+2Hy8Kj8wLPZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Thanks Bart/Micha! I thought I had RTFM thoroughly, but apparently not. :^) Steve Bart Schaefer wrote: > On Sep 9, 12:52pm, Steve Talley wrote: > > > How can I get this quoting/escaping behavior within a zsh > > function? > > escaped=${(q)fred} --O8XZ+2Hy8Kj8wLPZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (SunOS) iD8DBQE/XgpYpLGzI179N3kRAmWgAJ0VaT8sr5px8w3UGMJvhWtk+HvCUwCgkega LmP/g80rwy40O7kD+5+v21I= =BjYt -----END PGP SIGNATURE----- --O8XZ+2Hy8Kj8wLPZ--