Re: [PATCH] pager: use an environment variable for pager_in_use
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 16, 2007, 18:35 UTC
- Message-ID
- <Pine.LNX.4.63.0702161934230.22628@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <20070216182231.GA31676@moooo.ath.cx>
Hi,
On Fri, 16 Feb 2007, Matthias Lederhofer wrote:
> When running a shell script the value of pager_in_use is > lost for later processes. Therefore pager_in_use is > replaced by the environment variable GIT_PAGER_IN_USE.
Am I the only one who finds it ugly to set an environment variable for use in the same program?
> -int pager_in_use;
How about
+int pager_in_use = getenv("GIT_PAGER_IN_USE");???
Ciao, Dscho