-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Roy Marples wrote:
> Hello List
>
> It's your favourite posix shell lover here, asking for your honest
> opinions.
>
> array="1.2.3.4 netmask 5.6.7.8;
> \*
> 'host.name' netmask 1.2.3.4
> -I 'option; $FOO with spaces'
> "
>
> array=("1.2.3.4 netmask 5.6.7.8;"
> "\*"
> "'host.name' netmask 1.2.3.4"
> "-I 'option; $FOO with spaces'"
> )
>
> array="'1.2.3.4 netmask 5.6.7.8;' \
> '\*' \
> \"'host.name' netmask 1.2.3.4\" \
> \"-I 'option; $FOO with spaces'\"
> "
>
> The first and last are of course posix constructs whilst the middle is
> bash.
>
> The bash one is purely there for reference, and of course you can still
> use it if /bin/sh is bash. The last one is what baselayout-2 currently
> uses and I'm wondering if we should switch to the first one before we
> come out of package.mask.
>
> I'm asking which you think are the most readable of the first and last
> ones and if you see any issues with either.
These sh ``arrays'' are really just strings, right? Did you implement
functions to take them apart? Can the same function handle forms 1 and 3?
Marijn
- --
Marijn Schouten (hkBst), Gentoo Lisp project
<http://www.gentoo.org/proj/en/lisp/>, #gentoo-lisp on FreeNode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHIL4Bp/VmCx0OL2wRAszVAJ9gKSxDq+D4QlppCw+vHzKtCTq5DQCfUa0m
lxNxzVbipBXBcPL+6G2vGyY=
=bBAt
-----END PGP SIGNATURE-----
--
[EMAIL PROTECTED] mailing list