[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87645bhtvw.fsf@pelargir.dolphinics.no>
Date: Tue, 26 Jun 2007 12:50:27 +0200
From: Arne Georg Gleditsch <argggh@...phinics.no>
To: Randy Dunlap <randy.dunlap@...cle.com>
Cc: Oleg Verych <olecom@...wer.upol.cz>, Andi Kleen <ak@...e.de>,
lkml <linux-kernel@...r.kernel.org>, <akpm@...ux-foundation.org>
Subject: Re: NAK (bashizm in the /bin/sh script): [PATCH v3] doc/oops-tracing: add Code: decode info
Randy Dunlap <randy.dunlap@...cle.com> writes:
> OTOH, you also didn't supply a patch. If you do this, I'll be
> glad to consider it. If I can read it, that is.
I like bash as much as the next guy, but (to my surprise) /bin/sh on
my current workstation is actually dash. How about just replacing the
substring-interpolations with:
if [ $marker -ne 0 ]; then
beforemark=`echo "$code" | cut -c-$((marker - 1))`
[..]
# and fix code at-and-after marker
code=`echo "$code" | cut -c$marker-`
fi
and be done with it?
--
Arne.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists