Adam Majer wrote:
On Wed, Jun 02, 2021 at 10:26:24AM +0200, Jan Engelhardt wrote:
[...] Making /usr/bin/editor a program that painstakingly loads a ton of ELF libraries, parses config files is such a bad idea. Both
export EDITOR=/usr/bin/joe alias editor='$EDITOR' export PAGER=/usr/bin/less
or
PATH="$HOME/bin:$PATH" ln -s /usr/bin/joe ~/bin/editor
exec the "right" program, "right away" (after perhaps a search through PATH - it's still a _lot_ less syscalls).
Not sure editor cares about syscall overhead. But yes, there is about 3 or 4 syscalls + the exec(). Starting actual interpreters like bash is a lot more overhead.
So what's the verdict here? Is libalternative suitable to replace update-alternatives universally also for stuff like /bin/sh? cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.com/ SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer HRB 36809 (AG Nürnberg)