From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 102179 invoked by alias); 18 Feb 2019 07:20:09 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 102091 invoked by uid 89); 18 Feb 2019 07:20:08 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=1.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA,FREEMAIL_FROM,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*UA:x64, H*UA:Win64, H*u:x64, H*u:Win64 X-HELO: blaine.gmane.org Received: from Unknown (HELO blaine.gmane.org) (195.159.176.226) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 18 Feb 2019 07:20:07 +0000 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gvdDe-000W4p-9L for cygwin@cygwin.com; Mon, 18 Feb 2019 08:20:02 +0100 To: cygwin@cygwin.com From: Franz Fehringer Subject: Re: antrun versus wsl versus cygwin Date: Mon, 18 Feb 2019 08:28:00 -0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 Openpgp: preference=signencrypt In-Reply-To: X-IsSubscribed: yes X-SW-Source: 2019-02/txt/msg00265.txt.bz2 Am 17.02.2019 um 16:07 schrieb Houder: > On Sun, 17 Feb 2019 12:11:28, Franz Fehringer wrote: >> Hi all (half off topic), > > Not a Cygwin topic at all, I am guessing ... > >> I have installed (on a Windows 10 1809 system) both Cygwin and WSL (only >> the Windows component, no real Linux distribution yet). >> This scenario gives me a strange problem with antrun: With > executable="bash"> i always get the WSL bash instead of the Cygwin one, >> although Cygwin is first in PATH (both Cygwin PATH and Windows PATH), >> even so if C:/Windows/System32 (location of WSL bash) is not in the > > ? "executable not in PATH", however it is found? > > What is the value of PATH according to antrun? (is this ant ?????) > > https://stackoverflow.com/questions/5607580/how-to-set-the-path-environment-variable-from-ant-script > (How to set the path environment variable from ant script) > > https://ant.apache.org/manual/Tasks/exec.html > >> (Cygwin) PATH at all. >> I made some tries with extra parameters like seachpath to no avail. >> It (naturally) works if i give the full absolute path to the Cyhwin >> bash, but this is awkward. >> Any hints about reason and solution? > > Henri > > The configuration was: No system32 in the Cygwin PATH (from were maven / antrun / ant was started) and Cygwin bin before Windows system32 in the Windows (DOS) PATH. -- 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