Mailinglist Archive: opensuse-factory (401 mails)

< Previous Next >
Re: [opensuse-factory] Re: Can we assume that /bin/sh is bash?
On Thu, Mar 14, 2019 at 12:01:16AM +0100, Jan Engelhardt wrote:
On Wednesday 2019-03-13 09:50, Andreas Schwab wrote:

On Mär 13 2019, Stefan Seyfried <stefan.seyfried@xxxxxxxxxxxxxx> wrote:

but %{pre,post,preun,postun,...} are executed with the help of a shell

Not necessarily. They can also be implemented in embedded lua.

And we could also just (maybe) write

%pre -p /usr/sbin/update-alternatives --install ...

Exciting how rpm works.

It should be mentioned that with e.g.

%post -p <lua>

the os.execute() and io.popen() lua API do use /bin/sh just like
(g)libc system(3), that is ther is no os.execve() :P


"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
< Previous Next >
Follow Ups