This is the mail archive of the
gsl-discuss@sourceware.org
mailing list for the GSL project.
Re: gsl_rng_env_setup
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Giulio Bottazzi <giulio dot bottazzi at libero dot it>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Mon, 12 Dec 2005 16:08:28 +0000
- Subject: Re: gsl_rng_env_setup
- References: <20051116183636.0fff6da7.giulio.bottazzi@libero.it>
Giulio Bottazzi writes:
> I have a very short question:
> why the (otherwise extremely handy) function
>
> const gsl_rng_type * gsl_rng_env_setup (void)
>
> independently decides to print the environment variables and their
> values to stderr? This behaviour is, in my humble opinion, a little bit
> counter-intuitive... at least, if these messages are really necessary
> (but I don't think so) something like
I wanted it to follow the standard Unix command-line behavior. The
gsl IEEE setup functions does the same. When I run a program I do
./a.out >log 2>&1
and all the relevant environment variable seetings then appear at the
top of the logfile as a permanent record.
--
Brian Gough
Network Theory Ltd,
Publishing Free Software Manuals --- http://www.network-theory.co.uk/