From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Rg0Ai-0001yW-GK for garchives@archives.gentoo.org; Wed, 28 Dec 2011 20:32:26 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C661A21C133; Wed, 28 Dec 2011 20:32:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8F6F921C133 for ; Wed, 28 Dec 2011 20:32:16 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6D6E21B4041 for ; Wed, 28 Dec 2011 20:32:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id DA12E80043 for ; Wed, 28 Dec 2011 20:32:13 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: Subject: [gentoo-commits] proj/openrc:master commit in: net/ X-VCS-Repository: proj/openrc X-VCS-Files: net/iproute2.sh X-VCS-Directories: net/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: b12cb2f507b8ba7acc64e0e8172eb26bae00dc0a Date: Wed, 28 Dec 2011 20:32:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 089f21bd-0a6d-4cae-8acc-f04a365fde3d X-Archives-Hash: d543ecbb78cf2ca2eb0750d8671fa892 commit: b12cb2f507b8ba7acc64e0e8172eb26bae00dc0a Author: Robin H. Johnson gentoo org> AuthorDate: Wed Dec 28 20:31:02 2011 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Wed Dec 28 20:32:10 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3Db12cb2f5 net/iproute2: POSIX sh compatability: ${x/a/b} invalid The ${x/a/b} shell construct is NOT defined in the POSIX specification, it's a bash addition. Signed-off-by: Robin H. Johnson gentoo.org> --- net/iproute2.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/iproute2.sh b/net/iproute2.sh index 693efe0..bb52e98 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -138,7 +138,7 @@ _add_address() =20 # figure out the broadcast address if it is not specified # This must NOT be set for IPv6 addresses - if [ "${address/:}" =3D "${address}" ]; then + if [ "${address#*:}" =3D "${address}" ]; then [ -z "$broadcast" ] && broadcast=3D"+" elif [ -n "$broadcast" ]; then eerror "Broadcast keywords are not valid with IPv6 addresses"