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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; q=dns; s=default; b=LgxRsP9NqIRiBL6UozaK3BnivFHWmZ gFZf0ocApsKfqMV03+HrhjAz1KA8VPT0iMxudY6Z+wRh3ztn9Sdz39iiRIgrN5ZP bgwYun5HPE4183PsZVShrvuLfxTG/BY/pnRMQwLxlDTIpllYeebmqCoxPKT+U0XC mNjfHdlKM+Ndg= 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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=default; bh=HzGsAcNr2xVe3dCsM0/TWy8JIyo=; b=VeW7 QvbNAffFX7Omr8T0Zasz+pN8MgHD7eYBvXvB/YWbS30kAUaVOVfxEOW19GrPFSPz QQ4QS04CBbNIu5EbigW7n3yvn3G8uxYDwA/6HjlqRLbtVJy/d8pFaGu49Vz2s/wu qfRrelVJLIh6WRgb+a26mDj8wWwyVCohJQwZvkU= 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-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 To: cygwin AT cygwin DOT com From: Franz Fehringer Subject: Re: antrun versus wsl versus cygwin Date: Mon, 18 Feb 2019 08:15:59 +0100 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 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