From owner-svn-src-all@FreeBSD.ORG Fri Mar 1 23:24:26 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 490809E9; Fri, 1 Mar 2013 23:24:26 +0000 (UTC) (envelope-from grog@lemis.com) Received: from w3.lemis.com (w3.lemis.com [208.86.224.149]) by mx1.freebsd.org (Postfix) with ESMTP id F1DBF1C72; Fri, 1 Mar 2013 23:24:25 +0000 (UTC) Received: from eureka.lemis.com (1032.x.rootbsd.net [208.86.224.149]) by w3.lemis.com (Postfix) with ESMTP id 369DD3B952; Fri, 1 Mar 2013 23:24:18 +0000 (UTC) Received: by eureka.lemis.com (Postfix, from userid 1004) id 6058DF74FA; Sat, 2 Mar 2013 10:24:14 +1100 (EST) Date: Sat, 2 Mar 2013 10:24:14 +1100 From: Greg 'groggy' Lehey To: Chris Rees Subject: Re: svn commit: r247274 - in head: bin/test tools/regression/bin/test Message-ID: <20130301232414.GO7223@eureka.lemis.com> References: <201302251905.r1PJ5fKF085179@svn.freebsd.org> <20130226000227.GA80718@stack.nl> <20130227082548.GF99210@server.rulingia.com> <20130301142633.GA49921@stack.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8RsyD0KswhpoK73Z" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Organization: The FreeBSD Project Phone: +61-3-5346-1370 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Peter Jeremy , Jilles Tjoelker X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Mar 2013 23:24:26 -0000 --8RsyD0KswhpoK73Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Friday, 1 March 2013 at 17:13:45 +0000, Chris Rees wrote: > On 1 Mar 2013 14:27, "Jilles Tjoelker" wrote: >> The find(1) and stat(1) approaches also work in other shells such as >> bash, ksh and zsh. An extension to test(1) can only be used by writing >> ugly things like /bin/test. Whatever you may think of it, people write >> scripts for those other shells and it is somewhat unfortunate that they >> cannot use all FreeBSD-specific features. > > +1 > > While I'm aware that we have many very useful extensions to sh, we > should not sacrifice portability. This doesn't sacrifice portability. If you're aiming for complete portability, you may choose not to use these extensions, or to find alternatives for non-FreeBSD systems. This goes for just about every utility. > We (porters) are on thin ground when complaining at upstream for > assuming /bin/sh is bash when we have extensions such as these. There's a difference between having extensions and expecting them to be present everywhere. But you have a point: it should be documented that these extensions (and also <, >, -nt, -ot and -ef) are not portable. Greg -- Sent from my desktop computer. Finger grog@FreeBSD.org for PGP public key. See complete headers for address and phone numbers. This message is digitally signed. If your Microsoft MUA reports problems, please read http://tinyurl.com/broken-mua --8RsyD0KswhpoK73Z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlExOJ0ACgkQIubykFB6QiMy6ACdGQB9OTQRtNA5oxWcQeTBV4RP WHIAnjjthY1lzHsSlbmADE1qfG09LID7 =x2mO -----END PGP SIGNATURE----- --8RsyD0KswhpoK73Z--