From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: Eshell requires execute permission on Win10, was Re: Windows Binaries Release: was The emacs-28 release branch Date: Tue, 02 Nov 2021 15:37:52 +0100 Message-ID: <874k8ufwsf.fsf@telefonica.net> References: <83lf3dgbl3.fsf@gnu.org> <87tuhz1kqt.fsf@russet.org.uk> <87v92cipan.fsf@russet.org.uk> <867dedx8kp.fsf@duenenhof-wilhelm.de> <875ytrafdq.fsf@russet.org.uk> <864k92uunu.fsf@duenenhof-wilhelm.de> <87v91iqir0.fsf@russet.org.uk> <878ry7fuwq.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31133"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: emacs-devel@gnu.org Cancel-Lock: sha1:dM0a3JrdbZxvR7A+K9G8AmWQdnA= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 02 15:50:13 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhv77-0007uK-EP for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Nov 2021 15:50:13 +0100 Original-Received: from localhost ([::1]:33178 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhv76-0005FQ-5q for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Nov 2021 10:50:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhuvK-00062e-V7 for emacs-devel@gnu.org; Tue, 02 Nov 2021 10:38:03 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:47284) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhuvI-0008KS-Gy for emacs-devel@gnu.org; Tue, 02 Nov 2021 10:38:02 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mhuvG-0001yN-DT for emacs-devel@gnu.org; Tue, 02 Nov 2021 15:37:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:278485 Archived-At: "H. Dieter Wilhelm" writes: > Óscar Fuentes writes: > >> "H. Dieter Wilhelm" writes: > >>> I created such a script but my problem is that chmod seems not to work >>> for me! >>> >>> chmod u+x build-zips.sh >>> >>> doesn't change anything, so I can't run the scripts. Do you know this >>> problem? >> >> I don't know the context, but I'll chime anyway... > > Thanks for asking about the context, sorry! Above I used *eshell* to > execute a script on Windows10. > > I'm on MSYS2 and emacs-28 > > ~/scripts $ ./build-28-deps.sh > ./build-28-deps.sh: not an executable file > ~/scripts $ > > Is this a bug of eshell (under Windows)? No, I don't think so. Eshell knows about executables, possibly with some platform-specific nuances, and a text file that happens to contain a bash script is not an executable on Windows, you need the POSIX emulation layer and the added hacks provided by MSYS2 or Cygwin. I wouldn't use Eshell for doing work that depends on the POSIX emulation provided by MSYS2 (too many incompatible things involved!) Better use a proper MSYS2 console. Make sure that the console is the correct one for the architecture you are targeting. That is, depending on whether you are building a 32 bits or 64 bits Emacs, start the MSYS2 console with the shortcut for Mingw32 or Mingw64, respectively (I'm not sure how those shortcuts are named nowadays, but it should be obvious.)