Re: Bug#291039: kernel-patch-debian-2.6.10: bashism in apply file
- To: Gerrit Pape <pape@dbnbgs.smarden.org>, Debian kernel team <debian-kernel@lists.debian.org>, Kenshi Muto <kmuto@debian.org>, 291039@bugs.debian.org, Herbert Xu <herbert@gondor.apana.org.au>, Goswin von Brederlow <brederlo@informatik.uni-tuebingen.de>, 291107@bugs.debian.org, Roberto Suarez Soto <turgon@debian.org>
- Subject: Re: Bug#291039: kernel-patch-debian-2.6.10: bashism in apply file
- From: Horms <horms@debian.org>
- Date: Fri, 21 Jan 2005 12:49:49 +0900
- Message-id: <[🔎] 20050121034946.GJ29477@debian.org>
- Mail-followup-to: Gerrit Pape <pape@dbnbgs.smarden.org>, Debian kernel team <debian-kernel@lists.debian.org>, Kenshi Muto <kmuto@debian.org>, 291039@bugs.debian.org, Herbert Xu <herbert@gondor.apana.org.au>, Goswin von Brederlow <brederlo@informatik.uni-tuebingen.de>, 291107@bugs.debian.org, Roberto Suarez Soto <turgon@debian.org>
- In-reply-to: <[🔎] 20050121033126.GI29477@verge.net.au>
- References: <[🔎] 20050118104838.25B3522308F@mail.topstudio.co.jp> <[🔎] 20050119071526.GA3567@verge.net.au> <[🔎] 20050119170933.4809.qmail@07eea6b53bb09d.315fe32.mid.smarden.org> <[🔎] 20050121033126.GI29477@verge.net.au>
tags 291039 +pending
tags 291107 +pending
thanks
On Fri, Jan 21, 2005 at 12:31:26PM +0900, Horms wrote:
> > With some good will you can read this from:
> > http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_03
> > ---
> > If the command substitution consists of a single subshell, such as:
> >
> > $( (command) )
> >
> > a conforming application shall separate the "$(" and '(' into two tokens
> > (that is, separate them with white space). This is required to avoid any
> > ambiguities with arithmetic expansion.
> > ---
>
> Thanks for that clarification, I will make the relevant updates.
I have applied the following change to SVN which should rectify this
for 2.6.8, 2.6.9 and 2.6.10.
--
Horms
Index: kernel-source-2.6.8-2.6.8/debian/apply
===================================================================
--- kernel-source-2.6.8-2.6.8/debian/apply (revision 2332)
+++ kernel-source-2.6.8-2.6.8/debian/apply (working copy)
@@ -157,7 +157,7 @@
exit 0
fi
- for base in $((cd $home/series/ && ls -d *) | sort -rnt- -k 2); do
+ for base in $( (cd $home/series/ && ls -d *) | sort -rnt- -k 2); do
srev=${base#*-}
if [ -n "$srev" ]; then
if [ $srev -le $current_rev ]; then
@@ -168,7 +168,7 @@
fi
done
elif [ "$current_rev" = "$upstream" ] || [ $target_rev -gt $current_rev ]; then
- for base in $((cd $home/series/ && ls -d *) | sort -nt- -k 2); do
+ for base in $( (cd $home/series/ && ls -d *) | sort -nt- -k 2); do
srev=${base#*-}
if [ -n "$srev" ]; then
if [ $srev -gt $current_rev ] && [ $srev -le $target_rev ]; then
@@ -182,7 +182,7 @@
echo "Nothing to do, exiting."
exit 0
elif [ $target_rev -lt $current_rev ]; then
- for base in $((cd $home/series/ && ls -d *) | sort -rnt- -k 2); do
+ for base in $( (cd $home/series/ && ls -d *) | sort -rnt- -k 2); do
srev=${base#*-}
if [ -n "$srev" ]; then
# -gt because you don't want to unapply the target series
Index: kernel-source-2.6.9-2.6.9/debian/apply
===================================================================
--- kernel-source-2.6.9-2.6.9/debian/apply (revision 2332)
+++ kernel-source-2.6.9-2.6.9/debian/apply (working copy)
@@ -157,7 +157,7 @@
exit 0
fi
- for base in $((cd $home/series/ && ls -d *) | sort -rnt- -k 2); do
+ for base in $( (cd $home/series/ && ls -d *) | sort -rnt- -k 2); do
srev=${base#*-}
if [ -n "$srev" ]; then
if [ $srev -le $current_rev ]; then
@@ -168,7 +168,7 @@
fi
done
elif [ "$current_rev" = "$upstream" ] || [ $target_rev -gt $current_rev ]; then
- for base in $((cd $home/series/ && ls -d *) | sort -nt- -k 2); do
+ for base in $( (cd $home/series/ && ls -d *) | sort -nt- -k 2); do
srev=${base#*-}
if [ -n "$srev" ]; then
if [ $srev -gt $current_rev ] && [ $srev -le $target_rev ]; then
@@ -182,7 +182,7 @@
echo "Nothing to do, exiting."
exit 0
elif [ $target_rev -lt $current_rev ]; then
- for base in $((cd $home/series/ && ls -d *) | sort -rnt- -k 2); do
+ for base in $( (cd $home/series/ && ls -d *) | sort -rnt- -k 2); do
srev=${base#*-}
if [ -n "$srev" ]; then
# -gt because you don't want to unapply the target series
Index: kernel-source-2.6.10-2.6.10/debian/apply
===================================================================
--- kernel-source-2.6.10-2.6.10/debian/apply (revision 2332)
+++ kernel-source-2.6.10-2.6.10/debian/apply (working copy)
@@ -157,7 +157,7 @@
exit 0
fi
- for base in $((cd $home/series/ && ls -d *) | sort -rnt- -k 2); do
+ for base in $( (cd $home/series/ && ls -d *) | sort -rnt- -k 2); do
srev=${base#*-}
if [ -n "$srev" ]; then
if [ $srev -le $current_rev ]; then
@@ -168,7 +168,7 @@
fi
done
elif [ "$current_rev" = "$upstream" ] || [ $target_rev -gt $current_rev ]; then
- for base in $((cd $home/series/ && ls -d *) | sort -nt- -k 2); do
+ for base in $( (cd $home/series/ && ls -d *) | sort -nt- -k 2); do
srev=${base#*-}
if [ -n "$srev" ]; then
if [ $srev -gt $current_rev ] && [ $srev -le $target_rev ]; then
@@ -182,7 +182,7 @@
echo "Nothing to do, exiting."
exit 0
elif [ $target_rev -lt $current_rev ]; then
- for base in $((cd $home/series/ && ls -d *) | sort -rnt- -k 2); do
+ for base in $( (cd $home/series/ && ls -d *) | sort -rnt- -k 2); do
srev=${base#*-}
if [ -n "$srev" ]; then
# -gt because you don't want to unapply the target series
Reply to: