[PATCH] ash: allow a profile script to be embedded in the binary
Ron Yorston
rmy at pobox.com
Mon Nov 19 11:41:45 UTC 2018
Denys Vlasenko wrote:
>On Sun, Nov 18, 2018 at 4:04 PM Ron Yorston <rmy at pobox.com> wrote:
>> If the file embed/.profile exists at build time it is placed at the
>> start of the block of compressed scripts. Its name isn't included
>> in the list of scripts so it can't be run directly by the user.
>> Instead it is executed when a login shell is started, before
>> /etc/profile.
>
>I would like to see people requesting because they really need it.
>Not "just because we can and it's cool". What is the real-world
>essential benefit?
Well, I *was* going to say the intended audience was developers
shipping domain-specific scripts that could benefit from having
common configuration code and shared functions in a separate script.
But then I realised the current implementation won't help with that
because it's only run for a login shell. More thought is clearly
required.
Ron
More information about the busybox
mailing list