Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: environment handling rewrite
- X-seq: zsh-workers 12427
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>, "ZSH workers mailing list" <zsh-workers@xxxxxxxxxxxxxx>
- Subject: Re: PATCH: environment handling rewrite
- Date: Fri, 28 Jul 2000 16:30:26 +0000
- In-reply-to: <000501bff870$e1a9a400$21c9ca95@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <000501bff870$e1a9a400$21c9ca95@xxxxxxxxxxxxxx>
On Jul 28, 12:50pm, Andrej Borsenkow wrote:
}
} This rewrites environment handling to use system supplied
} putenv()/getenv() if available.
I would have preferred that putenv/getenv not have been defined as
functions using those names, but rather that there was a new function
named zputenv and that the body of the new getenv had been left in
zgetenv; that is, put #ifdefs inside the bodies of zputenv/zgetenv.
It's probably not a real issue because the #ifdef'd putenv/getenv are
declared static, but in general it's best to avoid redeclaring symbols
that some other library might also decide to redeclare.
Also, minor nit-pick, but I dislike the coding style of putting a space
between a function's name and the opening paren of the parameter list.
I won't repeat "hate" three times, but it's not consistent with the rest
of the zsh style.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author