bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug#343354: gettext-base: gettext.sh can't be sourced from zsh using


From: Sergio Talens-Oliag
Subject: Re: Bug#343354: gettext-base: gettext.sh can't be sourced from zsh using the default zsh options (fwd)
Date: Mon, 19 Dec 2005 17:44:57 +0100
User-agent: Mutt/1.5.9i

El Mon, Dec 19, 2005 at 01:34:11PM +0100, Bruno Haible va escriure:
> Thanks for the explanation of the problem. I find your solution of the
> problem a bit risky: it would break the day zsh introduced two different
> flags for controlling $0's behaviour in sourced script and functions, e.g.
> SOURCED_ARGZERO and FUNCTION_ARGZERO. I'm therefore applying the
> following patch instead.

Sure, your patch is simpler, but, as you say, it does not work if zsh is
installed as /bin/sh (it's possible and sets all the options to be compatible
with /bin/sh, but also leaves the ZSH_VERSION variable set; the original code
and my patch worked OK in that case).

Anyway, your patch is fine for me, I don't use zsh as /bin/sh and, in any
case, the behaviour is much better than before; having no --version or --help
for a shell function library is a lot better than having an unexpected exit.

Thanks a lot,

  Sergio.

-- 
Sergio Talens-Oliag <address@hidden>   <http://people.debian.org/~sto/>
Key fingerprint = 29DF 544F  1BD9 548C  8F15 86EF  6770 052B  B8C1 FA69

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]