Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh-4.2.1: LINENO lost in evals
- X-seq: zsh-workers 20265
- From: "Dieter Lambrecht" <dieter.lambrecht@xxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: zsh-4.2.1: LINENO lost in evals
- Date: Tue, 17 Aug 2004 10:27:02 +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hi,
script
#! /bin/zsh -x
emulate -L zsh
print $LINENO
eval 'print $LINENO'
return
produces the following output:
./t4.sh
+./t4.sh:2> emulate -L zsh
+./t4.sh:4> print 4
4
+./t4.sh:5> eval 'print $LINENO'
+(eval):1> print 1
1
.
It seems that LINENO is lost in the eval-statement. Is there any possibility to retrieve the original value inside evals ?
Kind Regards,
Dieter Lambrecht
--
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author