From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25257 invoked from network); 28 Oct 2005 09:34:37 -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 09:34:37 -0000 Received: (qmail 9017 invoked from network); 28 Oct 2005 09:34:25 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Oct 2005 09:34:25 -0000 Received: (qmail 7898 invoked by alias); 28 Oct 2005 09:34:18 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9573 Received: (qmail 7886 invoked from network); 28 Oct 2005 09:34:18 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 28 Oct 2005 09:34:18 -0000 Received: (qmail 8047 invoked from network); 28 Oct 2005 09:34:18 -0000 Received: from david.siemens.de (192.35.17.14) by a.mx.sunsite.dk with SMTP; 28 Oct 2005 09:34:17 -0000 Received: from mail1.siemens.de (localhost [127.0.0.1]) by david.siemens.de (8.12.6/8.12.6) with ESMTP id j9S9YG2o012945 for ; Fri, 28 Oct 2005 11:34:16 +0200 Received: from mhpahx2c.ww002.siemens.net (mhpahx2c.mch.sbs.de [139.25.165.55]) by mail1.siemens.de (8.12.6/8.12.6) with ESMTP id j9S9YFJp006083 for ; Fri, 28 Oct 2005 11:34:16 +0200 Received: from MCHP7R6A.ww002.siemens.net ([139.25.131.164]) by mhpahx2c.ww002.siemens.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 28 Oct 2005 11:34:15 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: "here" document broken? (New findings) Date: Fri, 28 Oct 2005 11:34:15 +0200 Message-ID: <6F0CB04509C11D46A54232E852E390AC44B9AB@MCHP7R6A.ww002.siemens.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: "here" document broken? (New findings) Thread-Index: AcXbnpElIHIHwDBkT/+qI4SzcmW0uAAAqKkA From: "Com MN PG P E B Consultant 3" To: "zsh-users Mailinglist" X-OriginalArrivalTime: 28 Oct 2005 09:34:15.0732 (UTC) FILETIME=[C346F740:01C5DBA2] 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 Things are still mysterious, but I am now able to narrow down the problem. So here is what I have so far: The following script, call it zsh_here, works well: #!/bin/zsh -f cat << EOD xxx EOD=20 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=20 zsh_here:2: no such file or directory As the only difference is the -f flag in the invocation of zsh, the culprit might be my startup scripts. But they are innocent: (1) If in the "good" version (version 1), I explicitly source .zshenv and .zshrc, it still works. (2) If I remove .zshenv and .zshrc (and also a .profile which was still hanging around), and then call the "bad" version, I still get=20 the error message. To be really sure that in case of (2), no other files are secretly sourced, I also called my script like this: zsh -x -c zsh_here and get the output: +zsh:1> zsh_here zsh_here:2: no such file or directory Aside from this flaw, the zsh seems to work fine: I have several scripts which work like a charm, as long I don't use here documents. 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...). Ronald