[PATCH 1/3] testsuite: warning when bash is not in use.

Laszlo Papp lpapp at kde.org
Tue Aug 19 06:27:31 UTC 2014


On Tue, Aug 19, 2014 at 7:24 AM, Natanael Copa <ncopa at alpinelinux.org>
wrote:

> On Mon, 18 Aug 2014 00:11:10 -0300
> Guilherme Maciel Ferreira <guilherme.maciel.ferreira at gmail.com> wrote:
>
> > The test suite scripts fail with "Bad substitution" error when using a
> shell
> > other than Bash. This patch adds an alert to the user, to remind him to
> change
> > its /bin/sh symlink.
>
> Wouldn't it be better to do:
>

Or even eliminate the bashism?


> diff --git a/testsuite/runtest b/testsuite/runtest
> index 51575d9..35968b1 100755
> --- a/testsuite/runtest
> +++ b/testsuite/runtest
> @@ -1,4 +1,4 @@
> -#!/bin/sh
> +#!/bin/bash
>  # Usage:
>  # runtest [applet1] [applet2...]
>
>
> Or even better, fix the script to be posix compliant?
>

Yep, exactly... +1 to this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20140819/7c14b855/attachment.html>


More information about the busybox mailing list