Mailinglist Archive: opensuse-factory (468 mails)

< Previous Next >
Re: [opensuse-factory] openSUSE:LEAP:15.1 missing dependency /usr/bin/bash for
Am 04.04.20 um 08:38 schrieb Jan Engelhardt:

On Saturday 2020-04-04 00:06, Christian Boltz wrote:
/usr/bin/env bash has some disadvantages:
- worst: the script might get a "random" bash (possibly /usr/local/bin/
bash) which is not expected by the packaged script, and might or might
not work

That's actually not a "disadvantage". The *programmer* clearly requested
a random bash - and, computers being what they are, deliver what was asked
for. Garbage in, garbage out.

And it actually lets the admin take control by putting the bash he likes
most further up $PATH, so I personally think it would be much better
fixing rpm dependency scanners instead of forbidding usage of env.

But another, related question:

Why would anyone ever put /usr/bin/bash into a script shebang?

The /bin/bash symlink certainly is there to stay forever.
So just using "#!/bin/bash" is not going to break anytime soon...
Stefan Seyfried

"For a successful technology, reality must take precedence over
public relations, for nature cannot be fooled." -- Richard Feynman
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >