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


Reply via email to