From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Wrong PATH in MSYS2/MINGW64 builds? Date: Thu, 28 May 2015 22:52:16 +0600 Message-ID: References: <55671E77.8030404@alice.it> <834mmwyc0i.fsf@gnu.org> <87fv6gaf4r.fsf@wanadoo.es> <83y4k8wtdd.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1432831993 18786 80.91.229.3 (28 May 2015 16:53:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 May 2015 16:53:13 +0000 (UTC) Cc: =?UTF-8?Q?=C3=93scar_Fuentes?= , Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 28 18:52:57 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yy13A-0001WL-Oa for ged-emacs-devel@m.gmane.org; Thu, 28 May 2015 18:52:56 +0200 Original-Received: from localhost ([::1]:60043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yy13A-0002ZR-Ac for ged-emacs-devel@m.gmane.org; Thu, 28 May 2015 12:52:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yy12u-0002VQ-D8 for emacs-devel@gnu.org; Thu, 28 May 2015 12:52:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yy12t-0001o3-Av for emacs-devel@gnu.org; Thu, 28 May 2015 12:52:40 -0400 Original-Received: from mail-lb0-x22e.google.com ([2a00:1450:4010:c04::22e]:34946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yy12r-0001nT-Us; Thu, 28 May 2015 12:52:38 -0400 Original-Received: by lbbuc2 with SMTP id uc2so32474447lbb.2; Thu, 28 May 2015 09:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=98UF/SLGDnarQaPoNzQWTV4BwYSxOmtIiP8jYfLFK/8=; b=vQsXVy4mz9cB5ZfyrR2ultIbcSaaAptyt5OPYnqyb6Nb3EbaY6iJHx0SQk/IH5BnZZ I3eubHs+jnhbHsPw508ROTuRTmmH9YmD+gfusZ6P/vqAa/t+eNUIcfZAO06btlfu7aue oAgeiZnU/jRdFAoBN6dlo3REgtEOIpX8y9Jtyg86e9A3ZmMNZHS9CXZuUTd9ryRpo3tq ho6OkHf++NWnID8p5PvSklQ2pPwK5EIGdH+0dpo83n/DM0xGriberUF2zwBcga1aCiPk tjc92zMZvSs6VEofN1lOW/afiHsuxNHqUSYHj/WSF4eF+AQpJdku0oWAUdHk2YJN0Rv/ NsNA== X-Received: by 10.112.147.201 with SMTP id tm9mr3804060lbb.40.1432831957096; Thu, 28 May 2015 09:52:37 -0700 (PDT) Original-Received: by 10.25.43.65 with HTTP; Thu, 28 May 2015 09:52:16 -0700 (PDT) In-Reply-To: <83y4k8wtdd.fsf@gnu.org> X-Google-Sender-Auth: R61MU0c3XMSQ2brcaLC3WSw-t0I X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:186923 Archived-At: On Thu, May 28, 2015 at 10:37 PM, Eli Zaretskii wrote: >> From: =C3=93scar Fuentes >> >> I would expect from Emacs to be able to execute the applications that >> reside on the same directory as emacs.exe. > > Why would you expect that? Because it's the default native behavior on Windows? =3D=3D=3D $ msdn CreateProcess [...] If the file name does not contain a directory path, the system searches for the executable file in the following sequence: 1. The directory from which the application loaded. 2. The current directory for the parent process. 3. The 32-bit Windows system directory. Use the GetSystemDirectory(2) function to get the path of this directory. 4. The 16-bit Windows system directory. There is no function that obtains the path of this directory, but it is searched. The name of this directory is System. 5. The Windows directory. Use the GetWindowsDirectory(2) function to get the path of this directory. 6. The directories that are listed in the PATH environment variable. =3D=3D=3D https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=3Dvs.= 85%29.aspx