Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Still problems with scriptname (presumably)
- X-seq: zsh-workers 10522
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Still problems with scriptname (presumably)
- Date: Wed, 05 Apr 2000 20:21:08 +0100
- In-reply-to: "Sven Wischnowsky"'s message of "Wed, 05 Apr 2000 10:15:55 +0200." <200004050815.KAA01596@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Sven Wischnowsky wrote:
> You'll have noticed that my patch (still not committed) doesn't change
> $0, it just keeps that from being used as the `name' for printing
> errors and warnings.
>
> So... ;-)
>
> (I'd be in favour of using the patch, the current behaviour looks so weird.)
Aha. Confusion is a wonderful thing. Yes, as far as internal management
of names goes that would be fine. It's explicitly separate from argzero
anyway, because of the [no]functionargzero bodge, and I've taken to using
`print -P %N' to get function names in messages, so your patch would seem
to be a sensible way forward.
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Work: pws@xxxxxxxxxxxxxxxxxxxxxxxxx
Web: http://www.pwstephenson.fsnet.co.uk
Messages sorted by:
Reverse Date,
Date,
Thread,
Author