Re: NAK (bashizm in the /bin/sh script): [PATCH v3] doc/oops-tracing: add Code: decode info

From: Arne Georg Gleditsch
Date: Thu Jun 28 2007 - 03:58:55 EST


Randy Dunlap <randy.dunlap@xxxxxxxxxx> writes:
> On Tue, 26 Jun 2007 19:25:00 +0200 Julio M. Merino Vidal wrote:
>> The correct expression could be $((${a} + 2)). Tested under NetBSD's
>> sh, which is very POSIX-compliant.
>
> Thanks. Does anyone see other changes that are needed?

[..]

> and the complete script is:

Both busybox sh and dash are happy with this. (Or rather, busybox
would be if its mktemp hadn't been broken.)

--
Arne.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/