public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: "Peter Müller" <peter.mueller@ipfire.org>
To: development@lists.ipfire.org
Subject: Question regarding shebang /bin/sh
Date: Tue, 07 Apr 2020 17:24:27 +0200	[thread overview]
Message-ID: <b742c6b3-2a6e-6902-d180-ceba253c1048@ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 474 bytes --]

Hello *,

quite a bunch of initscripts in IPFire 2.x contains the /bin/sh as given interpreter
in their shebang line. Since /bin/sh is a symlink to /bin/bash, I guess it makes sense
to rewrite them to /bin/bash accordingly.

That way, we avoid potential collateral damage by following symlinks (dangerous!) and provide
additional information so tools like shellcheck know what they are actually dealing with.

Opinions?

Thanks, and best regards,
Peter Müller

             reply	other threads:[~2020-04-07 15:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-07 15:24 Peter Müller [this message]
2020-04-07 15:27 ` Michael Tremer
2020-04-07 16:06 ` Tapani Tarvainen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b742c6b3-2a6e-6902-d180-ceba253c1048@ipfire.org \
    --to=peter.mueller@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox