On Tue, 26 Jun 2007 12:50:27 +0200 Arne Georg Gleditsch wrote: > Randy Dunlap <[email protected]> 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? Are these 2 line changes all that is needed? I sort of expected expressions like $((a + 2)) to need change also... maybe not for dash, but for sh? --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: NAK (bashizm in the /bin/sh script): [PATCH v3] doc/oops-tracing: add Code: decode info
- From: "Julio M. Merino Vidal" <[email protected]>
- Re: NAK (bashizm in the /bin/sh script): [PATCH v3] doc/oops-tracing: add Code: decode info
- References:
- [PATCH] doc/oops-tracing: add Code: decode info
- From: Randy Dunlap <[email protected]>
- Re: [PATCH] doc/oops-tracing: add Code: decode info
- From: Andi Kleen <[email protected]>
- [PATCH v2] doc/oops-tracing: add Code: decode info
- From: Randy Dunlap <[email protected]>
- Re: [PATCH v2] doc/oops-tracing: add Code: decode info
- From: Andi Kleen <[email protected]>
- [PATCH v3] doc/oops-tracing: add Code: decode info
- From: Randy Dunlap <[email protected]>
- NAK (bashizm in the /bin/sh script): [PATCH v3] doc/oops-tracing: add Code: decode info
- From: Oleg Verych <[email protected]>
- Re: NAK (bashizm in the /bin/sh script): [PATCH v3] doc/oops-tracing: add Code: decode info
- From: Randy Dunlap <[email protected]>
- Re: NAK (bashizm in the /bin/sh script): [PATCH v3] doc/oops-tracing: add Code: decode info
- From: Arne Georg Gleditsch <[email protected]>
- [PATCH] doc/oops-tracing: add Code: decode info
- Prev by Date: Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
- Next by Date: Re: NAK (bashizm in the /bin/sh script): [PATCH v3] doc/oops-tracing: add Code: decode info
- Previous by thread: Re: NAK (bashizm in the /bin/sh script): [PATCH v3] doc/oops-tracing: add Code: decode info
- Next by thread: Re: NAK (bashizm in the /bin/sh script): [PATCH v3] doc/oops-tracing: add Code: decode info
- Index(es):