From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5355 invoked from network); 12 Mar 2005 20:50:02 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 Mar 2005 20:50:02 -0000 Received: (qmail 74673 invoked from network); 12 Mar 2005 20:49:56 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Mar 2005 20:49:56 -0000 Received: (qmail 26706 invoked by alias); 12 Mar 2005 20:49:49 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8590 Received: (qmail 26696 invoked from network); 12 Mar 2005 20:49:48 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 12 Mar 2005 20:49:48 -0000 Received: (qmail 73683 invoked from network); 12 Mar 2005 20:49:48 -0000 Received: from vms048pub.verizon.net (206.46.252.48) by a.mx.sunsite.dk with SMTP; 12 Mar 2005 20:49:45 -0000 Received: from candle.brasslantern.com ([4.11.1.68]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0ID9002PVB6TPGB0@vms048.mailsrvcs.net> for zsh-users@sunsite.dk; Sat, 12 Mar 2005 14:49:42 -0600 (CST) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j2CKnebZ012048 for ; Sat, 12 Mar 2005 12:49:40 -0800 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j2CKneSl012047 for zsh-users@sunsite.dk; Sat, 12 Mar 2005 12:49:40 -0800 Date: Sat, 12 Mar 2005 20:49:40 +0000 From: Bart Schaefer Subject: Re: Why this doesn't work? In-reply-to: <20050312101450.GA5656@DervishD> To: Zsh Users Message-id: <1050312204940.ZM12046@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20050312101450.GA5656@DervishD> Comments: In reply to DervishD "Why this doesn't work?" (Mar 12, 11:14am) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Mar 12, 11:14am, DervishD wrote: } Subject: Why this doesn't work? As long as I'm passing out netiquette lessons, I might as well say that it would be nice if the word "this" in that Subject had been replaced by a slightly more descriptive phrase. } $ eval printf -- "Hello\\n" } Hello$ If this is really what you're seeing, then something is indeed wrong. What you should see is "Hellon", not "Hello". } $ eval printf -- "Hello\\\n" } Hello } } I mean, no newline character is output when using just two } backslashes, and I don't understand that. Remember that when you use "eval" the command line is actually parsed twice. So eval printf -- "Hello\\n" is equivalent to printf -- Hello\n The first parse removes the quotes and one of the backslashes, and the second parse removes the remaining backslash.