|
From: | Richard Neill |
Subject: | Re: idea: statically-linked "busy-bash" |
Date: | Thu, 09 Apr 2009 14:09:30 +0100 |
User-agent: | Thunderbird 2.0.0.19 (X11/20090114) |
Andreas Schwab wrote:
What I'm suggesting is to experimentally build a version of bash which has mv/cp/ls/stat/grep/.... all built in.This is possible without rebuilding bash, see the documentation of the `enable' builtin. There are already a few examples in the bash distribution under examples/loadables.
Thanks - that's interesting to know.However, most of the examples seem to be cut-down functions in some way - I can see that becoming incompatible/non-portable.
What I was contemplating is to build in most of the actual gnu utils with the aim of making eg the builtin "grep" functionally identical to /bin/grep.
Then I could make a system-wide change, replacing the regular bash shell with the fat-bash, and still have everything work...
Richard
[Prev in Thread] | Current Thread | [Next in Thread] |