From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.devel Subject: Re: Generalize start-process with keyword args Date: Mon, 16 Mar 2015 22:27:44 +0000 Message-ID: <8661a01stb.fsf@gmail.com> References: <87d24d3uwz.fsf-ueno@gnu.org> <86a8zc21ua.fsf@gmail.com> <83oanszq6u.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1426544894 15693 80.91.229.3 (16 Mar 2015 22:28:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Mar 2015 22:28:14 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 16 23:28:05 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 1YXdUS-000328-3y for ged-emacs-devel@m.gmane.org; Mon, 16 Mar 2015 23:28:04 +0100 Original-Received: from localhost ([::1]:51959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXdUR-0008VF-E7 for ged-emacs-devel@m.gmane.org; Mon, 16 Mar 2015 18:28:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXdUN-0008V8-6z for emacs-devel@gnu.org; Mon, 16 Mar 2015 18:28:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXdUI-0007Kj-SL for emacs-devel@gnu.org; Mon, 16 Mar 2015 18:27:59 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:35946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXdUI-0007KJ-M6 for emacs-devel@gnu.org; Mon, 16 Mar 2015 18:27:54 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YXdUH-0002s5-4g for emacs-devel@gnu.org; Mon, 16 Mar 2015 23:27:53 +0100 Original-Received: from 82-69-64-228.dsl.in-addr.zen.co.uk ([82.69.64.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Mar 2015 23:27:53 +0100 Original-Received: from andrewjmoreton by 82-69-64-228.dsl.in-addr.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Mar 2015 23:27:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 82-69-64-228.dsl.in-addr.zen.co.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt) Cancel-Lock: sha1:inm7nlHJhr4zPYq8LlReoT1avYM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:183935 Archived-At: On Mon 16 Mar 2015, Eli Zaretskii wrote: >> From: Andy Moreton >> Date: Mon, 16 Mar 2015 19:12:45 +0000 >> >> start-process assumes that the system is capable of handling shebang >> lines in shell scripts and launching them by executing a shell. > > Can you point out where does this assumption live in the code? In the callers of start-process, which assume that an executeable shell script can be used as the command argument. >> It would be useful to have a way to have start-process have an option to >> start the new process via a shell, so that existing code that assumes >> that it can use start-process with an executable shell script can also >> be made to work on Windows. > > The Windows shells cannot run Unix shell script, so I'm not sure I > understand how would you like this to work. By (optionally) invoking the command via a shell. This allows integration of unix style commands inplemented as executable shell scripts with Win32 emacs. At the moment I handle this on a case by case basis with advice, but it would be useful to allow a more general wrapper. AndyM