On 12/10/2013 12:44 PM, Eric Blake wrote:
Grep uses a third-party library (libpcre) to provide it's third syntax; if that library is not present at compilation, then you can't use that flavor. So maybe bash could look into using libpcre as well. But my personal problem with libpcre is that it is bloat: bash is already bigger than dash, and requiring yet another third party library will further swing the balance away from bash for the systems that want their POSIX 'sh' to be small rather than bloated.
--- Go the route vim does -- it can build in the interpreters for ruby, perl, python, -- but it can also load them dynamically -- so if you don't use any of those, you can still edit, but if you want to use one, make sure the lib is present at runtime... A bit like bash's present extensions/loadables I would think.