X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=E9dFVuJxjqYLsWnZ M2aP0dVR0HGuB1DoTWFuzDV/5YAjAO6szdcle1Y4typrt6SF2kGbAwDFdP+sosXy AVnUJXntjg90uksgzvbZkTv9bO3IUJ97BHtgktyYT9bj0zm0NPpFb/QH/7Nk7T+T PYpnSzD4sonVRI0bp3SPFDhqmg0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=aWhj7UO4XkIGlzUNlsnviy 9WDxo=; b=k0DvMIzuIs3jDtHq9neOvfVhkIo3+mT8KY7Io3rQWwTI1oKR2mSeFj IdI38CHIP/oWShRecSYbkyIQLVS3j04HClIMXnpYXT9vZMTEEjttDSxbtCaT+cXJ P1L9TO+gaLDPfJbLGeX9SRXB3O2+rOC0InINa3WwGgC5VrLvUZmP4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=Hx-spam-relays-external:sk:mrelaye, H*RU:sk:mrelaye, H*r:sk:mrelaye, Franke X-HELO: mout.kundenserver.de Subject: Re: Use a default path in exec*p*() if PATH is unset? To: cygwin AT cygwin DOT com References: From: Thomas Wolff Message-ID: Date: Tue, 11 Apr 2017 08:08:35 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-UI-Out-Filterresults: notjunk:1;V01:K0:9Pj4CfLRiPg=:jGv8g1z5Tj2jHuPcPnweRA HAj13qoWI5Zhja+XZPn8CqFww64e7chd1YGKY/ubvWgdVwoYkSACUaqw/JQ+YMUtRLDPD6PdJ eAPus4D/b0wrHX+OR80c69mXzGBTI4Rk0zqXQI2ZM0rxRaompoO/Fsr7+7N1k8H1qBQRwvkVA ukS+Wo2vJYDz7BgLSNpkP2ji9rwWiOZsoH+KQuPm+fsWCe0y1lUGLouw87cPkvx8zDPeenV6R SfZ6cM2jl+cIGYZFi/Ir1c7noMEeH7PKn85kU+XH4OaemxUGg0KaWc87HUiJ8fPAFJAIMjfoe f/s4tBgJXtSv5/TK2ROdPvhqDXsGgC5mVIbUvgoy6hzFLqPGsqpHF4WRO9ztXPLHjQ6myDbzQ Y5kv4rffINDv/Ix9O04Ed9KAuIPmIJ5UNw1/6azswOSI6WMisV9zpQqIe787i7N7s23o1MdTY 9a7aq5HhYmXMc6u63j/OvEuW99EkLrTd3/Hqw9yieVzUq7GqIInDdeJf/Pewm60aRPMvTYG7K 5ZsZWvTmlfj5PmamdoG0y9t9R9YoW1Gz+Q0SwC2mgYgIMYY5aK9fqmdEpIMsUfTsEShtD4DE+ vQd2gcG5/46HCx/oPOofzp02eFSas8Zm5pDbEj7BVJXAXpOGFfo98WyMozwxFDWE9Q3UdY+8Q nuB1ycCoZknfVCUIYGz8eg7ZdAKEZO0nO1Y9+itmlZc/K9L8ulufeQMvWfoOFZ7DYUCmEL8vr 5Fx5tYmTWJagFhvs X-IsSubscribed: yes Am 10.04.2017 um 22:29 schrieb Christian Franke: > A few years after https://cygwin.com/ml/cygwin/2014-09/msg00204.html > I found another use case of an unset PATH variable: > > The configure script from mandoc (http://mdocml.bsd.lv/) uses this > interesting approach to query default CC command from make: > > CC=`printf "all:\\n\\t AT 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. Thomas -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple