Roy Marples napsal(a): > This email is about network configuration. Before I joined Gentoo, > network configuration was done in bash arrays like so (note, that the > variable name was changed in baselayout-1.11) > > ifconfig_eth0=( > "10.1.1.1 netmask 255.255.255.0" > "10.1.1.2 netmask 255.255.255.0" > ) > > This is all well and good, but only bash and zsh can use it. Infact I'm > guilty as I embraced arrays and used them as the basis for our entire > network scripts. They have also served us well, but as they are also > array based they will have to be re-written too.
To be honest, I hate the idea of rewriting the network config; being
able to specify things like
config_eth0=( "10.1.1.{1..10}/24 brd +" )
(yes, it really expands correctly and works!) is extremely useful and
something you don't find in any other distro out there last time I've
checked. You can assign tons of IP address on a single line, or just
with a couple of lines if you need different subnets, instead of going
thru the boring and error-prone task of specifying every single address
separately.
Why kill such useful features just to get rid of arrays and bash?
Kevin F. Quinn napsal(a):
> Surely you would provide choice by providing different baselayout
> packages; one tailored for embedded systems that only have busybox,
> one for general purpose use, etc. That's what the virtual is for,
> isn't it?
+1
--
Best regards,
Jakub Moc
mailto:[EMAIL PROTECTED]
GPG signature:
http://subkeys.pgp.net:11371/pks/lookup?op=get&search=0xCEBA3D9E
Primary key fingerprint: D2D7 933C 9BA1 C95B 2C95 B30F 8717 D5FD CEBA 3D9E
... still no signature ;)
signature.asc
Description: OpenPGP digital signature
