Raphael Geissert
2012-Oct-16 02:59 UTC
[Pkg-xen-devel] Bug#690630: blktap-utils: bashism in /bin/sh script
Package: blktap-utils Version: 2.0.90-1 Severity: important User: debian-release at lists.debian.org Usertags: goal-dash Hello maintainer, While performing an archive wide checkbashisms (from the 'devscripts' package) check I've found your package containing a /bin/sh script making use of a bashism. checkbashisms' output:>possible bashism in ./usr/sbin/vhdpartx line 40 (alternative test command([[ foo ]] should be [ foo ])):> [[ -z "$lib" ]] && lib=$LIBVHDIO > >possible bashism in ./usr/sbin/vhdpartx line 41 (alternative test command([[ foo ]] should be [ foo ])):> [[ -z "$vhd" || "$count" != "1" ]] && usage > >possible bashism in ./usr/sbin/vhdpartx line 51 (alternative test command([[ foo ]] should be [ foo ])):> [[ -n "$none" ]] && partitions=0 && return 0 > >possible bashism in ./usr/sbin/vhdpartx line 54 (alternative test command([[ foo ]] should be [ foo ])):> while [[ "$partitions" != "0" ]]; do >possible bashism in ./usr/sbin/vhdpartx line 56 (alternative test command([[ foo ]] should be [ foo ])):> [[ -n "$hit" ]] && break >possible bashism in ./usr/sbin/vhdpartx line 57 (let ...): > let partitions=$partitions-1 >possible bashism in ./usr/sbin/vhdpartx line 69 (alternative test command([[ foo ]] should be [ foo ])):> while [[ $parts -le $partitions ]]; do >possible bashism in ./usr/sbin/vhdpartx line 71 (let ...): > let parts=$parts+1 >possible bashism in ./usr/sbin/vhdpartx line 79 (alternative test command([[ foo ]] should be [ foo ])):> while [[ $parts -le $partitions ]]; do >possible bashism in ./usr/sbin/vhdpartx line 80 (alternative test command([[ foo ]] should be [ foo ])):> [[ -e ${path}${parts} ]] || ln -s $(basename $path) ${path}$parts >possible bashism in ./usr/sbin/vhdpartx line 81 (let ...): > let parts=$parts+1 >possible bashism in ./usr/sbin/vhdpartx line 88 (alternative test command([[ foo ]] should be [ foo ])):> while [[ $parts -le $partitions ]]; do >possible bashism in ./usr/sbin/vhdpartx line 89 (alternative test command([[ foo ]] should be [ foo ])):> [[ -L ${vhd}$parts ]] && rm -f ${vhd}$parts >possible bashism in ./usr/sbin/vhdpartx line 90 (let ...): > let parts=$parts+1 >possible bashism in ./usr/sbin/vhdpartx line 97 (alternative test command([[ foo ]] should be [ foo ])):> [[ -x $part_util ]] || die "can't find part-util" >possible bashism in ./usr/sbin/vhdpartx line 98 (alternative test command([[ foo ]] should be [ foo ])):> [[ -r $vhd && -r $lib ]] || die "can't find vhd or lib" >possible bashism in ./usr/sbin/vhdpartx line 102 (alternative test command([[ foo ]] should be [ foo ])):> [[ -n "$add" ]] && add_mappings >possible bashism in ./usr/sbin/vhdpartx line 103 (alternative test command([[ foo ]] should be [ foo ])):> [[ -n "$del" ]] && del_mappings >possible bashism in ./usr/sbin/vhdpartx line 104 (alternative test command([[ foo ]] should be [ foo ])):> [[ -n "$list" ]] && list_mappingsNot using bash (or a Debian Policy conformant shell interpreter which doesn't provide such an extra feature) as /bin/sh is likely to lead to errors or unexpected behaviours. You can find hints about how to fix bashisms at: https://wiki.ubuntu.com/DashAsBinSh Thank you, Raphael Geissert
Debian Bug Tracking System
2013-Jun-22 16:21 UTC
[Pkg-xen-devel] Bug#690630: marked as done (blktap-utils: bashism in /bin/sh script)
Your message dated Sat, 22 Jun 2013 16:18:00 +0000 with message-id <E1UqQVk-0007m8-S7 at franck.debian.org> and subject line Bug#690630: fixed in blktap 2.0.90-2 has caused the Debian Bug report #690630, regarding blktap-utils: bashism in /bin/sh script to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner at bugs.debian.org immediately.) -- 690630: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690630 Debian Bug Tracking System Contact owner at bugs.debian.org with problems -------------- next part -------------- An embedded message was scrubbed... From: Raphael Geissert <atomo64 at gmail.com> Subject: blktap-utils: bashism in /bin/sh script Date: Mon, 15 Oct 2012 21:59:48 -0500 Size: 5758 URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20130622/196d509f/attachment.mht> -------------- next part -------------- An embedded message was scrubbed... From: Thomas Goirand <zigo at debian.org> Subject: Bug#690630: fixed in blktap 2.0.90-2 Date: Sat, 22 Jun 2013 16:18:00 +0000 Size: 5870 URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20130622/196d509f/attachment-0001.mht>
Reasonably Related Threads
- Bug#690630: Fixe for bashism in part/vhdpartx (see http://bugs.debian.org/690630)
- Bug#701554: xcp-xapi: bashism in /bin/sh script
- Bug#690612: xcp-xapi-debug: bashism in /bin/sh script
- Bug#690710: xcp-xapi: bashism in /bin/sh script
- blktap_2.0.90-2_amd64.changes ACCEPTED into unstable