package confget tag 632400 + pending thanks On Fri, Jul 01, 2011 at 07:20:14PM -0600, green wrote: > Package: confget > Version: 1.02-3 > Severity: normal > > I have a .desktop file with a link in it, like this: > [Desktop Entry] > Type=Link > Version=1.0 > Name=example > Encoding=UTF-8 > URL=http://www.example.com/ > > I ask confget to grab the URL out of there: > $ confget -f /tmp/example.desktop -n -t ini URL > confget: Invalid group line: [Desktop Entry] > > confget apparently can not handle spaces in groups. Or is it "sections" as > according to the man page? > > I checked to see if spaces are not permitted by INI standard, but there does > not seem to be really be a "standard".
You're absolutely right - there's no real reason for confget to not support spaces in section names. As far as I remember, this was done in a bout of overzealousness - the main reason for confget to arise was the need to use it in shell scripts, and I was very, very careful to not allow spaces into anything that might turn into the name of a shell or environment variable; now that I think about it, a section name is never used as part of the name of an environment variable (or, indeed, is not present anywhere in confget's output with any combination of command-line options), so spaces ought to be safe there. I just added support for spaces in my Git repository for confget - http://gitorious.org/confget/confget - and a Debian package ought to be forthcoming in a day or two. Thanks for reporting this, and for your interest in confget! G'luck, Peter -- Peter Pentchev r...@ringlet.net r...@freebsd.org pe...@packetscale.com PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This inert sentence is my body, but my soul is alive, dancing in the sparks of your brain.
signature.asc
Description: Digital signature