Bug#291107: kernel-patch-debian-2.6.9: bashism in apply/debian file
Package: kernel-patch-debian-2.6.9
Version: 2.6.9-5
Severity: normal
The file apply/debian (/usr/src/kernel-patches/all/2.6.9/apply/debian
in my system) has a bashism in line 160:
for base in $((cd $home/series/ && ls -d *) | sort -rnt- -k 2); do
I have dash as /bin/sh. So, when I try to apply the patch with
"make-kpkg --added-patches debian", it goes like this:
/usr/src/kernel-patches/all/2.6.9/apply/debian: 160: Syntax error: Missing '))'
I think the solution would be to change the "$(...)" stuff for a
backquote block (i.e., "`...`") or to specify /bin/bash as the shell
to use with this script. I've opted for the latter, but the former
looks prettier :-)
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-1-k7
Locale: LANG=gl:es:en, LC_CTYPE=gl:es:en (charmap=ISO-8859-1) (ignored: LC_ALL set to gl_ES)
Versions of packages kernel-patch-debian-2.6.9 depends on:
ii bzip2 1.0.2-3 high-quality block-sorting file co
-- no debconf information
Reply to: