Bug#778678: [debian-mysql] Bug#778678: Bug#778678: mysql-server: still some bashism
On Wednesday 18 February 2015 06:21 PM, Norvald H. Ryeng wrote: > On Wed, 18 Feb 2015 13:42:49 +0100, Bjoern Boschman > wrote: > >> now I'm confused - I thought it should b a noGo to use /bin/bash >> within maintainer scripts - but it seems to apply more to init scripts >> rather then additional scripts. >> can anybody enlighten me? > > AFAIK the rule is to not use bash specific syntax (bashisms) in > scripts run with /bin/sh. If you use /bin/bash, you can use all the > bashisms you want. > > Of course, sticking to strict POSIX sh is generally a good thing, but > I think we have more important things to work on just now. Right and I am using bash specific stuff quite frequently so this won't be a quick fix. > > Regards, > > Norvald H. Ryeng > > ___ > pkg-mysql-maint mailing list > pkg-mysql-ma...@lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-mysql-maint > > -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#778678: [debian-mysql] Bug#778678: mysql-server: still some bashism
On Wed, 18 Feb 2015 13:42:49 +0100, Bjoern Boschman wrote: now I'm confused - I thought it should b a noGo to use /bin/bash within maintainer scripts - but it seems to apply more to init scripts rather then additional scripts. can anybody enlighten me? AFAIK the rule is to not use bash specific syntax (bashisms) in scripts run with /bin/sh. If you use /bin/bash, you can use all the bashisms you want. Of course, sticking to strict POSIX sh is generally a good thing, but I think we have more important things to work on just now. Regards, Norvald H. Ryeng -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#778678: [debian-mysql] Bug#778678: mysql-server: still some bashism
now I'm confused - I thought it should b a noGo to use /bin/bash within maintainer scripts - but it seems to apply more to init scripts rather then additional scripts. can anybody enlighten me? 2015-02-18 13:18 GMT+01:00 Norvald H. Ryeng : > On Wed, 18 Feb 2015 12:29:21 +0100, Bjoern Boschman > wrote: > >> Package: mysql-server >> Version: 5.5.42-1 >> Severity: important >> >> Hi guys, >> >> unfortunatelly i found some bashism still used. >> >> additions/echo_stderr:#!/bin/bash >> additions/mysql-systemd-start:#!/bin/bash >> additions/debian-start:#!/bin/bash >> additions/debian-start.inc.sh:#!/bin/bash >> mysql-common.postrm:#!/bin/bash >> mysql-server-5.6.config:#!/bin/bash >> mysql-server-5.6.mysql.init:#!/bin/bash >> mysql-server-5.6.postinst:#!/bin/bash >> mysql-server-5.6.postrm:#!/bin/bash >> mysql-server-5.6.preinst:#!/bin/bash >> mysql-server-5.6.prerm:#!/bin/bash >> >> this also applies to mysql-5.5 and mariadb-10 > > > That shouldn't be a problem as long as they use /bin/bash. But I won't mind > if you get rid of the bashisms and convert them to /bin/sh. > > Regards, > > Norvald H. Ryeng -- Mit freundlich Grüßen / Kind regards Björn Boschman -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#778678: [debian-mysql] Bug#778678: mysql-server: still some bashism
On Wed, 18 Feb 2015 12:29:21 +0100, Bjoern Boschman wrote: Package: mysql-server Version: 5.5.42-1 Severity: important Hi guys, unfortunatelly i found some bashism still used. additions/echo_stderr:#!/bin/bash additions/mysql-systemd-start:#!/bin/bash additions/debian-start:#!/bin/bash additions/debian-start.inc.sh:#!/bin/bash mysql-common.postrm:#!/bin/bash mysql-server-5.6.config:#!/bin/bash mysql-server-5.6.mysql.init:#!/bin/bash mysql-server-5.6.postinst:#!/bin/bash mysql-server-5.6.postrm:#!/bin/bash mysql-server-5.6.preinst:#!/bin/bash mysql-server-5.6.prerm:#!/bin/bash this also applies to mysql-5.5 and mariadb-10 That shouldn't be a problem as long as they use /bin/bash. But I won't mind if you get rid of the bashisms and convert them to /bin/sh. Regards, Norvald H. Ryeng -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#778678: mysql-server: still some bashism
Package: mysql-server Version: 5.5.42-1 Severity: important Hi guys, unfortunatelly i found some bashism still used. additions/echo_stderr:#!/bin/bash additions/mysql-systemd-start:#!/bin/bash additions/debian-start:#!/bin/bash additions/debian-start.inc.sh:#!/bin/bash mysql-common.postrm:#!/bin/bash mysql-server-5.6.config:#!/bin/bash mysql-server-5.6.mysql.init:#!/bin/bash mysql-server-5.6.postinst:#!/bin/bash mysql-server-5.6.postrm:#!/bin/bash mysql-server-5.6.preinst:#!/bin/bash mysql-server-5.6.prerm:#!/bin/bash this also applies to mysql-5.5 and mariadb-10 -- System Information: Debian Release: 7.8 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages mysql-server depends on: ii mysql-server-5.6 5.6.23-1~exp1 mysql-server recommends no packages. mysql-server suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org