X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rugxulo Newsgroups: comp.os.msdos.djgpp Subject: Re: Using rename() with files still opened. Date: Wed, 3 Jun 2009 21:56:09 -0700 (PDT) Organization: http://groups.google.com Lines: 35 Message-ID: <2dc34486-5a0c-4f33-a9e0-326cd87d75a7@r33g2000yqn.googlegroups.com> References: <4cc1f101-88b2-4cda-a7b5-b01eaa9a77bf AT c9g2000yqm DOT googlegroups DOT com> <200905302109 DOT n4UL9lSG029239 AT envy DOT delorie DOT com> <16c0e74a-7e29-4444-912a-88ed19adb505 AT w40g2000yqd DOT googlegroups DOT com> <023faa15-c3f9-46ac-b0f4-e636aa091e9d AT g19g2000vbi DOT googlegroups DOT com> NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1244091369 22744 127.0.0.1 (4 Jun 2009 04:56:09 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Thu, 4 Jun 2009 04:56:09 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: r33g2000yqn.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.64 (Windows NT 6.0; U; en) Presto/2.1.1,gzip(gfe),gzip(gfe) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, On May 30, 7:44=A0pm, Rugxulo wrote: > > ... it's GNU sed 4.x specific, so it's not ideal for > (unless you assume it's present, ahem, yet NetBSD [and others??] > still uses a wimpy other one lacking "\<" among other things). Well, I messed around with a few VMs, so I can now say I was wrong ... mostly. ;-) Seems that FreeBSD (well, FreeSBIE 2.0.1 at least), NetBSD 4.0.1, and OpenBSD 4.5 all have different seds: basically from the same base but different options. FreeBSD supports -i and -E (EREs) among others, NetBSD supports -E etc., but OpenBSD supports neither. I now think I remember that "\<" (beginning of word) is an ERE, so maybe POSIX doesn't require it to be supported by default?? But it's so darn common, e.g. ex supports it. Anyways, I don't think any of the *BSDs will include GNU sed any time soon (except via ports) due to licensing. Heck, they all prefer pmake instead of GNU despite many projects requiring the latter. I even find it weird that they all rely so heavily on GCC but dislike it for various reasons too (bugs, semi-unmaintained ports, bitrot, slow speed). I've heard that PCC can compile OpenBSD's kernel and Clang/ LLVM can compile FreeBSD's (and even compiles GCC 4.2 itself), so who knows, they might switch to those. Apparently they all really dislike GPLv3, and I honestly have no idea why. (Did it really change that much? I didn't think so. And the FSF is actively converting everything GNU to GPLv3 these days.) In other words, sometimes licenses (even for "free software") get in the way. Or maybe it's just personality clashes, who knows. I don't claim to understand it. I guess when there's NDAs, money, binary blobs, and microcode updates involved, people get twitchy.