From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17806 invoked from network); 30 Oct 2005 05:05:36 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 30 Oct 2005 05:05:36 -0000 Received: (qmail 30530 invoked from network); 30 Oct 2005 05:05:30 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 30 Oct 2005 05:05:30 -0000 Received: (qmail 20929 invoked by alias); 30 Oct 2005 05:05:02 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9594 Received: (qmail 20892 invoked from network); 30 Oct 2005 05:05:00 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 30 Oct 2005 05:05:00 -0000 Received: (qmail 29223 invoked from network); 30 Oct 2005 05:05:00 -0000 Received: from tantale.fifi.org (64.81.251.130) by a.mx.sunsite.dk with SMTP; 30 Oct 2005 05:04:59 -0000 Received: from ceramic.fifi.org (Debian-exim@ceramic.fifi.org [64.81.251.131]) by tantale.fifi.org (8.9.3p2/8.9.3/Debian 8.9.3-21) with ESMTP id WAA22375; Sat, 29 Oct 2005 22:04:52 -0700 Received: from phil by ceramic.fifi.org with local (Exim 4.34) id 1EW5NE-0000Uu-J3; Sat, 29 Oct 2005 22:04:52 -0700 To: "Com MN PG P E B Consultant 3" Cc: "zsh-users Mailinglist" Subject: Re: "here" document broken? References: <6F0CB04509C11D46A54232E852E390AC44B9AA@MCHP7R6A.ww002.siemens.net> Mail-Copies-To: nobody From: Philippe Troin Date: 29 Oct 2005 22:04:52 -0700 In-Reply-To: <6F0CB04509C11D46A54232E852E390AC44B9AA@MCHP7R6A.ww002.siemens.net> Message-ID: <87ek63egsr.fsf@ceramic.fifi.org> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 "Com MN PG P E B Consultant 3" writes: > > > #!/bin/zsh > > > cat << EOD > > > xxx > > > EOD > > > > This prints "xxx" for me in 4.2.5 and in 4.0.9 :? > > > > > Any idea what's going wrong? > > > > I don't know. Do you have here documents in any script in your > > system (working heredocs, I mean)? Then the problem may be in your > > startup zsh scripts, but I can't think of where :??? > > This is a good point!!! > > I found that by chaning it to > > #!/bin/zsh -f > > (which is a sensible thing to do anyway), it works well! This means that > the problem has to be in my .zshrc, and though I don't see the problem > on the spot, this should be solvable... Probably using a "stdin drain" in your ~/.z* files. Like typically, rsh or ssh when used without the -n flag. Phil.