Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Use GLEP27!
Date: Tue, 15 Dec 2015 15:16:42
Message-Id: 20151215151625.GX11489@vapier.lan
In Reply to: Re: [gentoo-dev] Use GLEP27! by Ulrich Mueller
1 On 15 Dec 2015 15:56, Ulrich Mueller wrote:
2 > >>>>> On Tue, 15 Dec 2015, Mike Frysinger wrote:
3 >
4 > > a flat text file akin to /etc/passwd is not readable. xml is readable.
5 >
6 > ESR's case study about the password file format seems to disagree:
7 > http://www.catb.org/esr/writings/taoup/html/ch05s01.html#id2901332
8
9 i don't generally find anything ESR has to say useful, and his code even
10 less so
11
12 > I think the name:password:uid:gid:gecos:directory:shell format is
13 > readable well enough for human eyes.
14
15 having looked at way too many of these, i disagree. it's harder (imo) to
16 scan due to the lack of alignment, it's more of a pita to deal with defaults,
17 and it doesn't permit for additional metadata like i already quoted (the
18 defunct field).
19
20 > Certainly it is machine readable;
21 > even with standard tools like fgetpwent(3) (or its equivalent in other
22 > programming languages).
23
24 again, not portable. the format proposed is also trivial to parse by
25 python and awk.
26 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature