Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
$0 in function
- X-seq: zsh-users 4293
- From: "Joakim Ryden" <jryden@xxxxxxxxxxxx>
- To: <zsh-users@xxxxxxxxxx>
- Subject: $0 in function
- Date: Mon, 1 Oct 2001 01:00:06 -0400
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Thread-index: AcFKNfAXivg4TkzLTmmd5qAp7J+enQ==
- Thread-topic: $0 in function
I have a simple catch-all error function like so:
function print_error() {
echo "$0: an error ocurred"
echo -e "check buildlog: $BUILD_LOG for more information\n"
exit 1
}
In bash this prints on error:
./build_apache: an error ocurred.
check buildlog: /home/jo/www/build.log for more information
In zsh it prints:
print_error: an error ocurred.
check buildlog: /home/jo/www/build.log for more information
Is there an option I need to (un)set to emulate the bash behaviour in
this instance?
Thanks!
Jo
Messages sorted by:
Reverse Date,
Date,
Thread,
Author