Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug or feature?
- X-seq: zsh-workers 21963
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: Zsh Workers <zsh-workers@xxxxxxxxxx>
- Subject: Bug or feature?
- Date: Mon, 31 Oct 2005 23:08:56 +0100
- Mail-followup-to: Zsh Workers <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
Hi all :)
Let's assume this script (called "testscript"):
#!/bin/zsh
# This is line 2
alias testalias='\
print This is an alias that spans;\
print multiple lines;\
'
testalias
# Next line is 12
print $LINENO
return 0
# This is the last line
$ ./testscript
15
It prints 15 instead of (the correct) 12, due to the alias
expansion, but this is annoying when the script has an error and zsh
prints the offending line number, because when you edit the script
the error is a few lines above.
Is this a bug or a feature?
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...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author