From: "Com MN PG P E B Consultant 3" <mn-pg-p-e-b-consultant-3.com@siemens.com>
To: "zsh-users Mailinglist" <zsh-users@sunsite.dk>
Subject: RE: "here" document broken? (New findings)
Date: Fri, 28 Oct 2005 11:34:15 +0200 [thread overview]
Message-ID: <6F0CB04509C11D46A54232E852E390AC44B9AB@MCHP7R6A.ww002.siemens.net> (raw)
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
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
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
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
next reply other threads:[~2005-10-28 9:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-28 9:34 Com MN PG P E B Consultant 3 [this message]
2005-10-28 10:16 ` DervishD
2005-10-28 15:13 ` Bart Schaefer
2005-11-02 6:38 Com MN PG P E B Consultant 3
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6F0CB04509C11D46A54232E852E390AC44B9AB@MCHP7R6A.ww002.siemens.net \
--to=mn-pg-p-e-b-consultant-3.com@siemens.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).