Re: Suggested dual human/binary interface for proc/devfs

From: Ed Carp (erc@pobox.com)
Date: Tue Apr 11 2000 - 02:53:08 EST


George Bonser (grep@shorelink.com) writes:

> device{eth0{ip_address=192.168.201.116;netmask=255.255.255.0};eth1{ip_address=192.168.202.117;netmask=255.255.255.0};}
>
> or
>
> device {
> eth0 {
> ip_address=192.168.201.116
> netmask=255.255.255.0
> }
> eth1 {
> ip_address=192.168.202.117
> netmask=255.255.255.0
> }
> }
>
> (same thing)
>
> nests better and is more readable and there is already a bunch of code
> available to parse this format.
>
> The logic to parse this should be very easy.

In a shell script? I don't think so. Not nearly as easy as one-device-per-line.

Oh, and your way is inefficient - more lines to read, and a lot of wasted space.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:15 EST