~mirabilos/klibc/master

Viewing all changes in revision 2143.

  • Committer: Ben Hutchings
  • Author(s): Olliver Schinagl
  • Date: 2020-07-25 23:16:13 UTC
  • Revision ID: git-v1:23273aa05bdc564eb8ff0565d9df9c3edfffaee9
klcc: Remove the need for bash

Currently, in the entire klibc bash is only used to identify the path of
the perl binary. It is doing so using the bash built-in 'type' function,
which is POSIX compliant according to [0], but the option -c is not.

By using `command -v` instead, we achieve the same result, in a POSIX
compliant manor [1], potentially removing the unneeded bash dependency.

0 https://www.unix.com/man-page/posix/1p/type/
1 https://www.unix.com/man-page/posix/1p/command/

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: