From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18548 invoked from network); 24 Oct 2004 04:28:09 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 24 Oct 2004 04:28:09 -0000 Received: (qmail 17039 invoked from network); 24 Oct 2004 04:28:01 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 24 Oct 2004 04:28:01 -0000 Received: (qmail 291 invoked by alias); 24 Oct 2004 04:27:54 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8099 Received: (qmail 276 invoked from network); 24 Oct 2004 04:27:53 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 24 Oct 2004 04:27:53 -0000 Received: (qmail 15868 invoked from network); 24 Oct 2004 04:26:54 -0000 Received: from main.gmane.org (80.91.229.2) by a.mx.sunsite.dk with SMTP; 24 Oct 2004 04:26:52 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CLZxv-0001hK-00 for ; Sun, 24 Oct 2004 06:26:47 +0200 Received: from hippo.asfast.net ([216.182.10.250]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Oct 2004 06:26:47 +0200 Received: from ljz by hippo.asfast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Oct 2004 06:26:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Lloyd Zusman Subject: Re: Porting an alias from bash to zsh fails. Date: Sun, 24 Oct 2004 00:25:45 -0400 Message-ID: References: <20041023215252.GA24164@infidel.spots.ab.ca> <20041023231442.GA24632@infidel.spots.ab.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: hippo.asfast.net User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:J/t93sP3h5vYZvNEBaCSk/lGDF8= Sender: news X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 Bart Schaefer writes: > [ ... ] > > On Sat, 23 Oct 2004, s. keeling wrote: > >> Incoming from Lloyd Zusman: >> > alias dfn="rxvt +sb -fn '$RXVTNEWSFONT' -geometry 128x51+69+42 \ >> > -e nice /usr/bin/slrn -f /home/keeling/.jnewsrc-dfn \ >> > -h news.individual.net" >> > [snip] >> > >> > This works because the single quotes are treated as normal (non-quoting) >> .....................^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> > characters when inside of double quotes; therefore, the RXVTNEWSFONT >> ..^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> That was a surprise to me. Thanks. Your excellent explanation has >> solved it for me. Much appreciated. > > Lloyd's suggestion works in this case, but it would fail in the event that > the value of the variable contained any single-quote characters. A better > solution would be to swap the single and double quotes: > > alias dfn='rxvt +sb -fn "$RXVTNEWSFONT" -geometry 128x51+69+42 ...' Well, as you probably know, that's another of the suggestions that I made (see the bottom part of my original reply in this thread). -- Lloyd Zusman ljz@asfast.com God bless you.