Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Still problems with scriptname (presumably)



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