Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2013 10:21:39 +1030
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Darren Pilgrim <list_freebsd@bluerosetech.com>
Cc:        "freebsd-stable@freebsd.org Stable" <freebsd-stable@freebsd.org>
Subject:   Re: BIND segway -> python -> first-class ports
Message-ID:  <6813FA93-B6A2-432D-90C9-12A3401A51E8@gsoft.com.au>
In-Reply-To: <52A8FA2B.2020902@bluerosetech.com>
References:  <20131210023615.GR55638@funkthat.com> <52A68141.6010003@mu.org> <622122.74675.bm@smtp120.sbc.mail.gq1.yahoo.com> <20131210224915.GA55638@funkthat.com> <CAN6yY1tSqbrkt5bkjhDW6npT4PAXmMck0Xco%2BERwBE=wkkBDBQ@mail.gmail.com> <52A82099.9080100@bluerosetech.com> <B62F85D0-89E6-4FF8-ADE4-5025FB360462@gsoft.com.au> <52A8F0B7.1080109@bluerosetech.com> <62C65AF2-B68A-4898-9FBB-237DDE622758@gsoft.com.au> <52A8FA2B.2020902@bluerosetech.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 12 Dec 2013, at 10:20, Darren Pilgrim <list_freebsd@bluerosetech.com> =
wrote:
> On 12/11/2013 3:11 PM, Daniel O'Connor wrote:
>>=20
>> On 12 Dec 2013, at 9:39, Darren Pilgrim
>> <list_freebsd@bluerosetech.com> wrote:
>>=20
>>> On 12/11/2013 2:45 AM, Daniel O'Connor wrote:
>>>> On 11 Dec 2013, at 18:51, Darren Pilgrim
>>>> <list_freebsd@bluerosetech.com> wrote:
>>>>> On 12/10/2013 9:34 PM, Kevin Oberman wrote:
>>>>>> A parseable output from gpart would be wonderful.
>>>>>=20
>>>>> Have you seen the kern.geom.conf* sysctls?
>>>>=20
>>>> Have you tried parsing them from a shell script? :)
>>>=20
>>> Yes, actually.  kern.geom.conftxt is particularly easy to
>>> parse--it's already a set of space-separated fields, one line per
>>> device.
>>>=20
>>=20
>> Oops, actually I misread that and assumed it was talking about the
>> XML version.
>>=20
>> However the txt version has some very serious limitations - for
>> example if you have labels with whitespace it will be ambiguous.
>=20
> Well, yes, but you'll also get a /dev/gpt device entry with a space in =
it--a slightly more serious problem. :)

Only because shell is stupid and makes dealing with perfectly legal =
filenames extra hard :(

You could put a newline in there - imagine how 99% of existing scripts =
would handle that? :-/

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C









Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6813FA93-B6A2-432D-90C9-12A3401A51E8>