Disabled SHELL=dash on Windows due to invalid path backslash handling

Calling an executable via full path with Windows backslashes fails in
dash.
This commit is contained in:
Rich Kadel 2021-02-13 00:14:50 -08:00
parent b211acf683
commit cbe6c70c68
1 changed files with 2 additions and 0 deletions

View File

@ -30,9 +30,11 @@ DIFF := diff -u --strip-trailing-cr
# whenever possible. Most developer platforms include `/bin/dash`, but to ensure
# tests still work when `/bin/dash`, if not available, this `SHELL` override is
# conditional:
ifndef IS_WINDOWS # dash interprets backslashes in executable paths incorrectly
ifneq (,$(wildcard /bin/dash))
SHELL := /bin/dash
endif
endif
# This is the name of the binary we will generate and run; use this
# e.g. for `$(CC) -o $(RUN_BINFILE)`.