zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Cc: Dieter Lambrecht <dieter.lambrecht@db.com>
Subject: Re: zsh-4.2.1: LINENO lost in evals
Date: Wed, 1 Sep 2004 08:10:08 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.61.0409010801460.15271@toltec.zanshin.com> (raw)
In-Reply-To: <200409011202.i81C27ic008335@news01.csr.com>

On Wed, 1 Sep 2004, Peter Stephenson wrote:

> "Dieter Lambrecht" wrote:
> >#! /bin/zsh -x
> 
> (There must be a set -x or setopt xtrace lurking somewhere.)

Welcome back, Peter. :-)

> It's not actually lost, it's showing you the line in the eval.  That's
> a feature (compare error messages from Perl evals, which is where we
> pinched the output format from).

The thing is, Perl has two kinds of "eval":

schaefer[676] perl <<\EOF
print __LINE__."\n";
eval 'print __LINE__."\n"';
eval { print __LINE__."\n"; };
EOF
1
1
3

The kind in braces, which gets precompiled, behaves differently than the 
kind in quotes.  Zsh only has the kind in quotes.


  reply	other threads:[~2004-09-01 15:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-17  8:27 Dieter Lambrecht
2004-09-01 12:02 ` Peter Stephenson
2004-09-01 15:10   ` Bart Schaefer [this message]
2004-09-02 13:57 Dieter Lambrecht
2004-09-02 15:53 ` Peter Stephenson

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=Pine.LNX.4.61.0409010801460.15271@toltec.zanshin.com \
    --to=schaefer@brasslantern.com \
    --cc=dieter.lambrecht@db.com \
    --cc=zsh-workers@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).