After check the installed package of execline on alpine. I choose to install main part of execline to /usr/bin. Create /usr/sbin directory, create relative symbol link for cd, umask and wait to /usr/bin/execline.
# rebuild the conflicted files (filesystem, bash package) in /usr/sbin mkdir -p %{buildroot}%{_sbindir} rm %{buildroot}%{_bindir}/{cd,umask,wait} cd %{buildroot}%{_sbindir} ln -s ../bin/execline cd ln -s ../bin/execline umask ln -s ../bin/execline wait Any suggestion? > On Apr 2, 2024, at 09:05, ericwq...@qq.com wrote: > > Two options: > 1. Move the conflicted files: cd, umask and wait to /usr/sbin, while keep the > others in /bin directory. > 2. Install all of them to /usr/sbin directory. > > Which one is better? > > Wang qi. >> On Apr 2, 2024, at 06:25, Laurent Bercot <ska-skaw...@skarnet.org> wrote: >> >> If the default PATH has /usr/sbin before /usr/bin for all users, then the >> best thing is probably to install cd, umask and wait into /usr/sbin. It's >> not exactly clean, but at this point we're not trying to be clean, we're >> trying to make things work. And it wouldn't be the first time a binary that's >> available to all users gets installed in /usr/sbin. >