From: "Boyd Stephen Smith Jr." <bss03@volumehost•net>
To: Josef Jeff Sipek <jeffpc@josefsipek•net>
Cc: Wu Fengguang <fengguang.wu@intel•com>, git@vger•kernel.org
Subject: Re: [PATCH] guilt: add option guilt.diffstat
Date: Sat, 13 Dec 2008 00:18:50 -0600 [thread overview]
Message-ID: <200812130018.56061.bss03@volumehost.net> (raw)
In-Reply-To: <20081213044357.GD15407@josefsipek.net>
[-- Attachment #1: Type: text/plain, Size: 812 bytes --]
On Friday 2008 December 12 22:43:57 Josef Jeff Sipek wrote:
>> + if [ -n "$5" -o "x$diffstat" = "x1" ]; then
>
>Why the 'x' thing? I've seen it is some scripts before, but I can't think of
>a reason to use it if the variable is surrounded in quotation marks.
'[' or test see the arguments after they are unquoted (normally). So,
if "$diffstat" is "-n" it might try and do the -n test, rather than the =
test.
It could be re-written as "1" == "${diffstat}" instead to avoid the x, but
it's not a big deal (to me). That also looks backwards to a lot of people.
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss03@volumehost•net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.org/ \_/
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-12-13 6:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-13 2:14 [PATCH] guilt: add option guilt.diffstat Wu Fengguang
2008-12-13 4:43 ` Josef Jeff Sipek
2008-12-13 6:18 ` Boyd Stephen Smith Jr. [this message]
2008-12-13 6:23 ` Josef Jeff Sipek
2008-12-13 13:17 ` Wu Fengguang
2008-12-18 11:26 ` [PATCH][RESEND] " Wu Fengguang
2008-12-18 14:39 ` Josef Jeff Sipek
2008-12-19 0:08 ` Wu Fengguang
2008-12-20 4:33 ` Josef Jeff Sipek
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=200812130018.56061.bss03@volumehost.net \
--to=bss03@volumehost$(echo .)net \
--cc=fengguang.wu@intel$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
--cc=jeffpc@josefsipek$(echo .)net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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