Skip to content

Make configure usable with shells without 'which' and other improvements#32

Open
stepnem wants to merge 2 commits into
koron:masterfrom
stepnem:posixconfigure
Open

Make configure usable with shells without 'which' and other improvements#32
stepnem wants to merge 2 commits into
koron:masterfrom
stepnem:posixconfigure

Conversation

@stepnem
Copy link
Copy Markdown

@stepnem stepnem commented May 6, 2026

No description provided.

stepnem added 2 commits May 6, 2026 09:18
POSIX does not require 'which' and some POSIX shells do not
implement it (for example dash).

The 'command' shell built-in is required by POSIX and is
a better match for what CHECK_COMMAND tries to do, anyway.

Also quote the function argument properly.
- remove unused variable 'config_default'
- fix whitespace handling (implicit "$@" instead of $*,
  variable quoting)
- use 'printf' instead of 'echo' where the latter is fragile
  or incorrect
- simplify ('false' instead of 'test 0 != 0', useless use of
  sed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant