Skip to content

Idiomatic way to check whether cygpath exists in the test.sh scripts #1965

@Rangi42

Description

@Rangi42

fa22b78 switched from using which cygpath to using type -t cygpath, due to which being non-conformant on "some platforms" Mac OS X 10.4 Tiger and returning 0 even if the command was not found. It might be preferable to use which -s cygpath ("No output, just return 0 if all of the executables are found, or 1 if some were not found") or command -v cygpath (that's used by pokecrystal's Makefile to check whether sha1sum exists). (I think we should also comment in the test.sh scripts why we're using whichever particular approach we decide on, since future maintainers might not realize there are any differences besides style.)

Metadata

Metadata

Assignees

Labels

testsThis affects the test suite

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions