Use a default path in exec*p*() if PATH is unset?

Thomas Wolff
Tue Apr 11 06:09:00 GMT 2017

Am 10.04.2017 um 22:29 schrieb Christian Franke:
> A few years after
> I found another use case of an unset PATH variable:
> The configure script from mandoc ( uses this 
> interesting approach to query default CC command from make:
> CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | env -i make -sf -`
Why does it `env -i` at all? (And why does it prepend a \ to the output?)
It seems this scriptlet has an issue, rather than adapting core 
behaviour for it.

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list