From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24933 invoked from network); 28 Oct 2005 10:16:04 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 28 Oct 2005 10:16:04 -0000 Received: (qmail 39347 invoked from network); 28 Oct 2005 10:15:56 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Oct 2005 10:15:56 -0000 Received: (qmail 17740 invoked by alias); 28 Oct 2005 10:15:49 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9575 Received: (qmail 17730 invoked from network); 28 Oct 2005 10:15:49 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 28 Oct 2005 10:15:49 -0000 Received: (qmail 38298 invoked from network); 28 Oct 2005 10:15:49 -0000 Received: from ns9.hostinglmi.net (213.194.149.146) by a.mx.sunsite.dk with SMTP; 28 Oct 2005 10:15:48 -0000 Received: from 212.red-80-35-44.staticip.rima-tde.net ([80.35.44.212] helo=localhost) by ns9.hostinglmi.net with esmtpa (Exim 4.52) id 1EVRGy-0002Bp-Sl; Fri, 28 Oct 2005 12:15:45 +0200 Date: Fri, 28 Oct 2005 12:16:47 +0200 From: DervishD To: Com MN PG P E B Consultant 3 Cc: zsh-users Mailinglist Subject: Re: "here" document broken? (New findings) Message-ID: <20051028101647.GD233@DervishD> Mail-Followup-To: Com MN PG P E B Consultant 3 , zsh-users Mailinglist References: <6F0CB04509C11D46A54232E852E390AC44B9AB@MCHP7R6A.ww002.siemens.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6F0CB04509C11D46A54232E852E390AC44B9AB@MCHP7R6A.ww002.siemens.net> User-Agent: Mutt/1.4.2.1i Organization: DervishD X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ns9.hostinglmi.net X-AntiAbuse: Original Domain - sunsite.dk X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - dervishd.net X-Source: X-Source-Args: X-Source-Dir: 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.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 Hi Ronald :) * Com MN PG P E B Consultant 3 dixit: > The following script, call it zsh_here, works well: > > #!/bin/zsh -f > cat << EOD > xxx > EOD > > If I change it like this, it does not work anymore: > > #!/bin/zsh > cat << EOD > xxx > EOD > > If I execute it, I get the error message > > zsh_here:2: no such file or directory Try this: #!/bin/zsh cat << EOD EOD If you still get the error, then the problem is in the "cat" line (which I assume from the error output and line number) and in some interaction with RC files. > (1) If in the "good" version (version 1), I explicitly source .zshenv > and .zshrc, it still works. Then the problem is probably not on those files but on /etc/zsh* ones. > I start to suspect that this zsh version (4.0.7) is broken. Unless > someone has another idea where to look, I try to persuade our > sysadmin to install a newer version (I know this won't be easy...). First let's take a look at the /etc/zsh* files. If you source them explictly in your first example, does it still work? Can you install a new version of zsh locally (in your home) and run it to reproduce the error? Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 | http://www.dervishd.net http://www.pleyades.net & http://www.gotesdelluna.net It's my PC and I'll cry if I want to...