public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Opinions Wanted - Arrays again :)
@ 2007-10-25 15:40 Roy Marples
  2007-10-25 16:02 ` Marijn Schouten (hkBst)
                   ` (4 more replies)
  0 siblings, 5 replies; 24+ messages in thread
From: Roy Marples @ 2007-10-25 15:40 UTC (permalink / raw
  To: gentoo-dev

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.

Thanks

Roy

-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2007-10-30  4:16 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-25 15:40 [gentoo-dev] Opinions Wanted - Arrays again :) Roy Marples
2007-10-25 16:02 ` Marijn Schouten (hkBst)
2007-10-25 16:18   ` Roy Marples
2007-10-25 16:37     ` Ioannis Aslanidis
2007-10-26 11:30     ` Roy Marples
2007-10-25 17:18 ` Josh Saddler
2007-10-25 21:31 ` Donnie Berkholz
2007-10-25 21:49   ` Roy Marples
2007-10-25 22:56     ` Donnie Berkholz
2007-10-26  6:28       ` Roy Marples
2007-10-26 10:16         ` Richard Freeman
2007-10-26 10:42           ` Roy Marples
2007-10-26 16:36             ` [gentoo-dev] " Duncan
2007-10-26 17:03               ` Roy Marples
2007-10-26 18:57                 ` Duncan
2007-10-26 21:17                   ` Roy Marples
2007-10-27  3:02                     ` Richard Freeman
2007-10-28  6:46                 ` [gentoo-dev] " Steve Long
2007-10-29  7:35                   ` Natanael Copa
2007-10-30  3:55                     ` [gentoo-dev] " Steve Long
2007-10-26  6:13 ` [gentoo-dev] " Alec Warner
2007-10-26  6:32   ` Roy Marples
2007-10-29  9:50 ` Roy Marples
2007-10-30  3:58   ` [gentoo-dev] " Steve Long

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox