libconf-dev
[Top][All Lists]
Advanced

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

shell template and whitespace around the = (was Re: [Libconf-dev] CVS lo


From: Brian J. Murrell
Subject: shell template and whitespace around the = (was Re: [Libconf-dev] CVS login broken?)
Date: 14 Jun 2003 09:00:01 -0400

On Sat, 2003-06-14 at 08:33, address@hidden wrote:
> 
> If you want, you can lurk on #libconf on freenodes.net irc, there is someone
> sometimes...

I'm not much of an IRC person actually.  It's just too synchronous and
as such requires too much (human) interrupt processing.  It's too much
like the telephone.  Requires you to participate real-time.

I am just looking over the source currently.

Something I noticed is that the "shell" template (for parsing
"key=value" type config files, right?) does not allow for whitespace
before and/or after the = sign.  Perhaps the RE:

"s/^\s*(\w+)\s*=\s*("([^"]*)"|'([^']*)'|[^'"\s]+)\s*$//

would be more robust?

b.

-- 
Brian J. Murrell <address@hidden>

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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