login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
June
»
4
Re: [PATCH] scripts: decodecode: use /bin/bash
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Américo Wang
Subject:
Re: [PATCH] scripts: decodecode: use /bin/bash
Date: Thursday, June 3, 2010 - 9:53 pm
On Thu, Jun 03, 2010 at 10:29:03PM +0530, Rabin Vincent wrote:
quoted text
>On Thu, Jun 03, 2010 at 09:24:58AM -0700, Randy Dunlap wrote: >> On Thu, 3 Jun 2010 21:44:46 +0530 Rabin Vincent wrote: >> >> > 5358db ("scripts: add ARM support to decodecode") added a few bashims to >> > the decodecode script, so explicitly ask for bash. >> > >> > Signed-off-by: Rabin Vincent <rabin@rab.in> >> > --- >> > Alternatively, I have a patch to remove the bashisms, if that's preferred. >> >> Yes, that's what we usually prefer to do. >> Please post it. > >Here it is: > >From f729122bcd237f32c9f667e5644c6114ddc795af Mon Sep 17 00:00:00 2001 >From: Rabin Vincent <rabin@rab.in> >Date: Thu, 3 Jun 2010 21:33:46 +0530 >Subject: [PATCH] scripts: decodecode: remove bashisms > >Remove bashisms to make scripts/decodecode work with other shells. > >Signed-off-by: Rabin Vincent <rabin@rab.in> >--- > scripts/decodecode | 10 +++++----- > 1 files changed, 5 insertions(+), 5 deletions(-) > >diff --git a/scripts/decodecode b/scripts/decodecode >index 8b30cc3..18ba881 100755 >--- a/scripts/decodecode >+++ b/scripts/decodecode >@@ -40,7 +40,7 @@ echo $code > code=`echo $code | sed -e 's/.*Code: //'` > > width=`expr index "$code" ' '` >-width=$[($width-1)/2] >+width=$((($width-1)/2)) > case $width in > 1) type=byte ;; > 2) type=2byte ;; >@@ -48,10 +48,10 @@ case $width in > esac > > disas() { >- ${CROSS_COMPILE}as $AFLAGS -o .o .s &> /dev/null >+ ${CROSS_COMPILE}as $AFLAGS -o .o .s > /dev/null 2>&1
I am a bit surprised to see this is bash specific. Anyway, this patch looks good for me. Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com> Thanks! --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] scripts: decodecode: use /bin/bash
, Rabin Vincent
, (Thu Jun 3, 9:14 am)
Re: [PATCH] scripts: decodecode: use /bin/bash
, Randy Dunlap
, (Thu Jun 3, 9:24 am)
Re: [PATCH] scripts: decodecode: use /bin/bash
, Rabin Vincent
, (Thu Jun 3, 9:59 am)
Re: [PATCH] scripts: decodecode: use /bin/bash
, Rabin Vincent
, (Thu Jun 3, 10:18 am)
Re: [PATCH] scripts: decodecode: use /bin/bash
, Randy Dunlap
, (Thu Jun 3, 11:25 am)
Re: [PATCH] scripts: decodecode: use /bin/bash
, Américo Wang
, (Thu Jun 3, 9:53 pm)
Re: [PATCH] scripts: decodecode: use /bin/bash
, Michal Marek
, (Fri Jun 4, 1:32 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
David Daney
[PATCH 5/7] Staging: Octeon Ethernet: Convert to NAPI.
Wolfgang Grandegger
[PATCH net-next v4 1/3] can: mscan: fix improper return if dlc < 8 in start_xmi...
Amit Kumar Salecha
[PATCHv3 NEXT 2/2] NET: Add Qlogic ethernet driver for CNA devices
openbsd-misc
:
Theo de Raadt
Re: Old IPSEC bug
Tomáš Bodžár
Problem with vpnc connection - check group password !
Insan Praja SW
Mandoc Compiling Error
Carl Roberso
Re: Cannot change MTU of carp interface?
Richard Daemon
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate