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 1MDST3-0001OL-Hu for garchives@archives.gentoo.org; Mon, 08 Jun 2009 00:12:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F0599E04AF; Mon, 8 Jun 2009 00:11:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id ABD90E04AF for ; Mon, 8 Jun 2009 00:11:59 +0000 (UTC) Received: from mail.isohunt.com (b01.ext.isohunt.com [208.71.112.51]) by smtp.gentoo.org (Postfix) with ESMTP id 0A3B667688 for ; Mon, 8 Jun 2009 00:11:58 +0000 (UTC) Received: (qmail 25461 invoked from network); 8 Jun 2009 00:11:57 -0000 Received: from tsi-static.orbis-terrarum.net (HELO curie.orbis-terrarum.net) (76.10.188.108) (smtp-auth username robbat2@isohunt.com, mechanism login) by mail.isohunt.com (qpsmtpd/0.33-dev on beta01) with (AES256-SHA encrypted) ESMTPSA; Mon, 08 Jun 2009 00:11:57 +0000 Received: (qmail 10639 invoked by uid 10000); 7 Jun 2009 17:11:54 -0700 Date: Sun, 7 Jun 2009 17:11:54 -0700 From: "Robin H. Johnson" To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Detecting Baselayout2/OpenRC from init.d scripts (summary of debate and plans from bug 270646) Message-ID: References: <20090607195950.GI22927@orbis-terrarum.net> <18988.14596.869442.77191@a1ihome1.kph.uni-mainz.de> <4A2C46AB.4050607@marples.name> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="U+NfgObvpQT1Q9Yq" Content-Disposition: inline In-Reply-To: <4A2C46AB.4050607@marples.name> User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: 9df075a9-3c31-4b84-aca7-f6fd86daf1e9 X-Archives-Hash: de8d0b8fdddbcb1db3df7b5047bca616 --U+NfgObvpQT1Q9Yq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 08, 2009 at 12:00:59AM +0100, Roy Marples wrote: >> Roy: [[ or [? > Entirely depends on system. > OpenRC uses /bin/sh to process the actual init script. We rely on /bin/sh= =20 > claiming POSIX compat [1]. On Gentoo Linux systems, this is normally a li= nk=20 > to bash, so you can use bashisms if you so wish. Is "[[" a bashism or not? That's all I'm asking.=20 What's a good way to test for POSIX compatibility so that the testing CAN actually be done. My testcase was 'bash --posix'. Testing under busybox's ash seems to work perfectly with "[[" as well. > But as you asked, here's what the good doc [1] has to say > The following words may be recognized as reserved words on some=20 > implementations (when none of the characters are quoted), causing=20 > unspecified results: > [[ ]] function select > In other words, I won/t make any claims whether [[ ]] works in OpenRC. That doesn't answer if it's a bashism. I interpret that part of the document to simply be that it's implementation detail is not covered by the POSIX spec. > Franky, I've given up on trying to enforce anything POSIX related over=20 > something else (like say GNU or implementation extensions over an accepte= d=20 > standard). I just don't care. I used to, but developer and user backlash= =20 > (see the archives) was just too much for me and was one of the resaons wh= y=20 > I retired from Gentoo. I'm all for going with something that will work more globally, IFF it can be easily tested for (on pure Gentoo Linux machines, which is what most developers are running, because they won't be bothered to test under G/FBSD or Prefix/OSX etc), vs. just going by what the specification says. > Just Do What The Fuck You Like, Just Don't Bug Me pretty much somes up my= =20 > attitude right now. Why do I have this attiude? Well, bug #175783 is a ve= ry=20 > good example. It's over two years since I submitted replacement scripts a= nd=20 > did more besides. It's just like the courier-imap fiasco when=20 > baselayout-1.12 was touted for stable, but this time I Just Don't Care. There hasn't been any release of the mysql-init-scripts in 2 years. It's not that anything contrary to your opinions has been done on that bug, it's more that I haven't have any specific need to fix that package yet. That bug there also raised the openrc detection issue. I hadn't read the comments in it for nearly a year now. --=20 Robin Hugh Johnson Gentoo Linux Developer & Infra Guy E-Mail : robbat2@gentoo.org GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85 --U+NfgObvpQT1Q9Yq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Robbat2 @ Orbis-Terrarum Networks - The text below is a digital signature. If it doesn't make any sense to you, ignore it. iEYEARECAAYFAkosV0oACgkQPpIsIjIzwiyniQCgtb2hzw+2lZK4g9+u/YsXO1al 7vQAn0A8UpmIrW9Vj0+VgtW5Ho8P5xO+ =dvEI -----END PGP SIGNATURE----- --U+NfgObvpQT1Q9Yq--