tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sh: utilities implemented as a built-in



On Fri, Mar 24, 2017 at 06:55:57PM +0700, Robert Elz wrote:
> Incidentally, the reason that the path search stuff isn't completely
> absurd, is that if I have PATH=$HOME/bin:/bin:... (which is more or
> less what I do) and I decide to implement my own (improved) test, or '['
> command (or probably, both) and install it in $HOME/bin I'd really like
> (and expect) it to get used, rather than the /bin/test (/bin/[) clone
> which is built into the shell.  That's what would happen for "ls" or "cat"
> or any other command not built in.   Currently it doesn't work for built-ins
> without one form or other of extra magic to cause it.

Make [ an alias to the full path. From a pkgsrc perspective, I really
strongly want to keep the amount of work necessary for the extremely
common builtins down to a minimum. Having to search path seems like a
lot of unnecessary work.

Joerg


Home | Main Index | Thread Index | Old Index