Live data from Hacker News

Perl Regex Removed From Grep in Mountain Lion

dirtdon.com

1–10 of 63 posts

Re: Perl Regex Removed From Grep in Mountain Lion

#4
something i'm curious about - for linux fans who have made the switch, is osx an "acceptable unix"? people keep trumpeting the fact that it combines the best of both worlds, a seamless gui experience atop a full-fledged posix core complete with a bash prompt you can drop down to as easily as you can in linux, but philosophically it seems that for the little things like package management, command line utilities, etc., the experience is closer to cygwin than it is to linux proper - you can do it, sure, but it will involve falling back to a third-party ecosystem.

Re: Perl Regex Removed From Grep in Mountain Lion

#5
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.

Re: Perl Regex Removed From Grep in Mountain Lion

#7
post #4

something i'm curious about - for linux fans who have made the switch, is osx an "acceptable unix"? people keep trumpeting the fact that it combines the best of both worlds, a seamless gui experience atop a full-fledged posix core complete with a bash prompt you can drop down to as easily as you can in linux, but philosophically it seems that for the little things like package management, command line utilities, etc.…

Its not close to GNU tools but its very true to Unix tools. Many of the tools have the same options (if not the same man pages) as their Free/Open/NetBSD versions.

Re: Perl Regex Removed From Grep in Mountain Lion

#8
post #4

something i'm curious about - for linux fans who have made the switch, is osx an "acceptable unix"? people keep trumpeting the fact that it combines the best of both worlds, a seamless gui experience atop a full-fledged posix core complete with a bash prompt you can drop down to as easily as you can in linux, but philosophically it seems that for the little things like package management, command line utilities, etc.…

Oh, no, the experience is way better than Cygwin. Cygwin feels exactly like what it is a: bolt-on trying to emulate features and filesystem structures of a completely alien OS. It feels clunky, what you see when you do 'ls' at the 'root' of your filesystem is completely different to what you see when you 'dir' (or use the Windows Explorer.)

OS X is a completely different story. If you ever used BSD before, you know how it feels 'almost' like linux, barring a few differences. It's the same with OS X. Besides package management (which is greatly alleviated by Homebrew) and so-so integration of X applications, I can't say I miss my Ubuntu laptop at all.

Re: Perl Regex Removed From Grep in Mountain Lion

#9
post #5

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,…

Since 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.

Re: Perl Regex Removed From Grep in Mountain Lion

#10
post #4

something i'm curious about - for linux fans who have made the switch, is osx an "acceptable unix"? people keep trumpeting the fact that it combines the best of both worlds, a seamless gui experience atop a full-fledged posix core complete with a bash prompt you can drop down to as easily as you can in linux, but philosophically it seems that for the little things like package management, command line utilities, etc.…

Its not close to GNU tools but its very true to Unix tools. Many of the tools have the same options (if not the same man pages) as their Free/Open/NetBSD versions.

ah - that's an interesting distinction. i guess linux has gotten me subconsciously used to thinking of the gnu tools as the current unix standard.
Post reply on HN