From: "Harald van Dijk" <truedfx@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Re: [RFC] base.eclass
Date: Sun, 3 Jan 2010 07:23:07 +0100 [thread overview]
Message-ID: <20100103062307.GA13558@boostbox> (raw)
In-Reply-To: <4B3FF949.40901@gentoo.org>
On Sun, Jan 03, 2010 at 02:56:01AM +0100, Tomáš Chvátal wrote:
> Dne 3.1.2010 01:56, Mark Bateman napsal(a):
> > There seems to be alot of unquoted variables
> >
> > 65 base_src_util $@
> This is not problem
Only because you can be sure there will be exactly one word in the
result, which will not be split. In general, $@ should be quoted, and it
would be a good idea to either do it here too even though it's not
strictly necessary, or make the intent clearer and just write
base_src_util $1
> > 90 case $1 in
> Yarp this is problem and fixed
That's not a problem. A case expression is another example where quoting
is unnecessary; there won't be any word splitting on $1 anyway.
> > 95 [[ ! -z "${A}" ]] && unpack ${A}
> ${A} is not used quoted :]
Right, that doesn't need quoting, and it would even be okay to drop the
unnecessary quotes in [[.
next prev parent reply other threads:[~2010-01-03 8:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-02 15:52 [gentoo-dev] [RFC] base.eclass Tomáš Chvátal
2010-01-02 16:12 ` Ben de Groot
2010-01-02 16:31 ` Tomáš Chvátal
2010-01-03 0:56 ` [gentoo-dev] " Mark Bateman
2010-01-03 1:56 ` Tomáš Chvátal
2010-01-03 6:23 ` Harald van Dijk [this message]
2010-01-03 10:28 ` Ulrich Mueller
2010-01-03 11:00 ` Harald van Dijk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100103062307.GA13558@boostbox \
--to=truedfx@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox