4 ms·
http://wiki.freebsd.org/BSDgrep http://wiki.freebsd.org/BSDgrep BSD grep has been imported to 9.0-CURRENT on July 22, 2010. It has been obtained from the OpenB
by js2 14y ago
http://wiki.freebsd.org/BSDgrep http://wiki.freebsd.org/BSDgrep
BSD grep has been imported to 9.0-CURRENT on July 22, 2010. It has been obtained from the OpenBSD and the FreeGrep projects to make it appropriate for our needs to provide GNU compatibility and let ports build without problems. GNU compatibility is almost 100%, the only missing feature is -P (--perl-regex), which is not possible to support without having PCRE in base system and anyway, it was disabled in GNU grep for the same reason.
Somewhat ironic as OS X includes PCRE. Not sure why Apple didn't stay with GNUgrep.
- Hemospectrum 14y agoSince the introduction of the GPL3, there's been a steady purge of GNU software from OS X. This is why Apple's GCC, bash, etc. are stuck at old versions lacking a variety of useful features. I'm kind of curious what they'll do about Emacs. It doesn't have a BSD-licensed counterpart like everything else they've removed... Maybe they'll just leave it out.
- smosher 14y agoSince the introduction of the GPL3, there's been a steady purge of GNU software from OS X. Is it all GNU software that's being purged, or just the GPLv3 licensed stuff? If the latter, I can't say I blame them. The former case can go either way but I guess it's good to future-proof early.
- Hemospectrum 14y agoAs far as I know, all GNU software went to GPLv3. Literally all of it. Even things with no substantial updates since 2007.
- gizmo686 14y agoIsn't (one of) the points of the GPL that you cannot change the licensing of the software?
- tl 14y agoIf you hold the copyright, new versions can be under whatever license you want. Old versions cannot have their license changed.
- SwellJoe 14y agoThe copyright holder can do anything they want with the license of the software, including change it. What has been released under older versions of the license cannot be taken back, as millions of people received the software under the old license...so if you received a version of Emacs under GPL v2, you have every right to continue to distribute it under the terms of that license, and you have no ability to alter those terms (since you are not the copyright holder). But, the GNU foundation (who holds the copyright for Emacs and all GNU software) has every right to alter what license they distribute new versions of the software under. A lot of people have a lot of weird superstitions about the GPL. It's probably useful to read the license sometime. It may also be useful to acquire a basic understanding of copyright law, if you are a software developer.
- Hemospectrum 14y agoShort answer: Not quite. Long answer: One of the conditions for contributing code to the GNU project is assigning copyright to the FSF. That means they're legally the sole copyright holders for all software they distribute. The official reason for this is so they can pursue GPL violations in court without involving the actual authors of the code. It also permits them to change the license on any of their software. Finally, there are various reasons they might be able to do this anyway even if they didn't have the copyright assignment rule, so long as the new restrictions didn't conflict with whatever license the original software was distributed under.
- pooriaazimi 14y agoSo, in theory, FSF can overnight change the license of all GNU softwares to shareware and sell them? That's really fucked up. (I trust they won't do such a thing, but I didn't think such a thing could be possible)
- jkn 14y agoI very much blame them for their effort to ensure they can prevent users from modifying Free Software utilities on their own machines. What else would be the purpose of avoiding GPLv3? And breaking compatibility with user scripts and removing features in the process... Glad my macbook pro can still boot linux.
- __david__ 14y agoThe built in Emacs is languishing along side the built-in bash. It's GNU Emacs 22.1 from "2007 April 13" (according to the man page) which is going on 5 years old at this point. The current release of Emacs is 24.2. You can get a binary of it here: http://www.emacsformacosx.com/ http://www.emacsformacosx.com/
- Hemospectrum 14y agoI already do this, even though I rarely use Emacs. Presumably those who work with it every day are far more hampered than me by a five-year-old installation. So my actual (rhetorical) question for Apple is whether there's a point to keeping around a version of Emacs so out of date that anyone using it would install their own copy anyway.
- ConstantineXVI 14y agoDoubt there was anyone at Apple concerned or willing enough to take the time/effort to port -P into bsdgrep.
- james2vegas 14y agoYeah, just use pcregrep