Date: Sat, 2 Mar 2013 10:24:14 +1100 From: Greg 'groggy' Lehey <grog@FreeBSD.org> To: Chris Rees <utisoft@gmail.com> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Peter Jeremy <peter@rulingia.com>, Jilles Tjoelker <jilles@stack.nl> Subject: Re: svn commit: r247274 - in head: bin/test tools/regression/bin/test Message-ID: <20130301232414.GO7223@eureka.lemis.com> In-Reply-To: <CADLo83_OtYyeLvsV%2BgQCJRzLkPy_rdNZpt=-XroyDkxE6GjExA@mail.gmail.com> References: <201302251905.r1PJ5fKF085179@svn.freebsd.org> <20130226000227.GA80718@stack.nl> <20130227082548.GF99210@server.rulingia.com> <20130301142633.GA49921@stack.nl> <CADLo83_OtYyeLvsV%2BgQCJRzLkPy_rdNZpt=-XroyDkxE6GjExA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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" <jilles@stack.nl> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130301232414.GO7223>