git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add support reading default options from conf file

From
Petr Baudis <pasky@ucw.cz>
Date
Jun 9, 2005, 08:32 UTC
Message-ID
<20050609083243.GD29665@pasky.ji.cz>
In-Reply-To
<20050609010056.GA9084@diku.dk>

Dear diary, on Thu, Jun 09, 2005 at 03:00:56AM CEST, I got a letter where Jonas Fonseca <fonseca@diku.dk> told me that...

Show 15 quoted lines
> Reply-To: 
> In-Reply-To: <42A754D5.10705@gmail.com>
> 
> Dan Holmsand <holmsand@gmail.com> wrote Wed, Jun 08, 2005:
> > - Automatic color if the COGITO_AUTO_COLOR environment variable is set.
> 
> [ This has been discussed before. Default arguments. The 'new' cg
>   wrapper makes this very easy. Not as smart as your env variable
>   handling tho'. ]
> 
> The default options are read only for Cogito calls going through the new
> cg wrapper which makes it trivial to 'overwrite' them by just calling
> cg-COMMAMD.
> 
> Signed-off-by: Jonas Fonseca <fonseca@diku.dk>

No, this is the wrong way. The 'cg' wrapper must not really do anything special on its own. It's not a _replacement_ for direct calling of the cg-scripts, it's just an aid for people who don't want to get used to it. So please do this in cg-Xlib.

Also, I'd prefer the config file to be something like ~/.cgrc. I want to reserve the .conf file for something more sophisticated. ;-)

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
<Espy> be careful, some twit might quote you out of context..
Previous: Jonas FonsecaNext: Jonas Fonseca
Message 2 of 3 in “Add support reading default options from conf file”
  1. Add support reading default options from conf fileJonas Fonseca, Jun 9, 2005
  2. Petr BaudisJun 9, 2005
  3. Read default options from config fileJonas Fonseca, Jun 11, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.