From owner-freebsd-questions@freebsd.org Mon Apr 1 14:55:05 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ED12F1565C81 for ; Mon, 1 Apr 2019 14:55:04 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 7A40772872 for ; Mon, 1 Apr 2019 14:55:04 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from lowell-desk.be-well.ilk.org (router.lan [172.30.250.2]) by be-well.ilk.org (Postfix) with ESMTP id 6065133C0B for ; Mon, 1 Apr 2019 10:54:50 -0400 (EDT) Received: by lowell-desk.be-well.ilk.org (Postfix, from userid 1147) id 08648156E428; Mon, 1 Apr 2019 10:54:48 -0400 (EDT) From: Lowell Gilbert To: freebsd-questions@freebsd.org Subject: Re: eee-dee anyone? References: <23e162e23288d9a2e498df5f40488bb8@kathe.in> <44muld9su4.fsf@be-well.ilk.org> <20190330035113.65fc995f.freebsd@edvax.de> <441s2o9zrr.fsf@be-well.ilk.org> <20190401122246.89061c15.freebsd@edvax.de> Date: Mon, 01 Apr 2019 10:54:48 -0400 In-Reply-To: <20190401122246.89061c15.freebsd@edvax.de> (Polytropon's message of "Mon, 1 Apr 2019 12:22:46 +0200") Message-ID: <44k1gdydvr.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 7A40772872 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [4.04 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.91)[0.906,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; MX_GOOD(-0.01)[cached: be-well.ilk.org]; NEURAL_SPAM_LONG(0.94)[0.937,0]; DMARC_NA(0.00)[ilk.org]; NEURAL_SPAM_MEDIUM(0.17)[0.171,0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:7922, ipnet:23.30.0.0/15, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.04)[ip: (0.09), ipnet: 23.30.0.0/15(0.07), asn: 7922(0.09), country: US(-0.06)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Apr 2019 14:55:05 -0000 Polytropon writes: > On Sat, 30 Mar 2019 10:56:40 -0400, Lowell Gilbert wrote: >> Because it's described by POSIX, ed(1) is with us to stay. Because it >> has non-trivial differences between POSIX and BSD versions (which have >> bitten me in the past), I use sed(1) regardless of whether ed would have >> done the job. I suspect that is a common pattern. > > I think the aspect of POSIX-compliance is one of the main reasons > that so many "old-fashioned" programs still exist in default > installs of many UNIXes. UNIX books which cover UNIX in general, > instead of concentrating on one specific Linux version, still > often cover those "legacy tools". Yes, I just checked two: ed(1) is particularly noteworthy here, because the BSD usages were sufficiently engrained in system management practices (probably on SunOS and Solaris machines at the time) that the POSIX spec actually documents the BSD behaviour, even though it refers to the non-BSD behaviour as "POSIX." This isn't the case for most other utilities: various implementations often support lots and lots of extensions that other implementations don't, but POSIX only covers the common subset that's really portable.