From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: zvrba@zvrba.net Newsgroups: gmane.emacs.bugs Subject: bug#8132: 23.1; comint shell replaces \ in paths with / Date: Tue, 1 Mar 2011 02:06:37 -0500 Message-ID: <20110301070637.GA86881@lilly.csoft.net> References: <4D6A5130.1040107@zvrba.net> <4D6BB83B.20507@zvrba.net> <83zkpgm2jn.fsf@gnu.org> <83sjv7mr5h.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1298965447 16171 80.91.229.12 (1 Mar 2011 07:44:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2011 07:44:07 +0000 (UTC) Cc: zvrba.external@zvrba.net, 8132@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 01 08:43:57 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PuKFQ-0000Ae-Jo for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Mar 2011 08:43:56 +0100 Original-Received: from localhost ([127.0.0.1]:40768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuKFQ-0003S4-3D for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Mar 2011 02:43:56 -0500 Original-Received: from [140.186.70.92] (port=44465 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuK8X-0006GU-Io for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2011 02:36:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuK8V-0003iK-FW for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2011 02:36:49 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40563) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuK8V-0003iG-DQ for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2011 02:36:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PuK4r-0006Av-Po; Tue, 01 Mar 2011 02:33:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: zvrba@zvrba.net Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Mar 2011 07:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8132 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8132-submit@debbugs.gnu.org id=B8132.129896477423724 (code B ref 8132); Tue, 01 Mar 2011 07:33:01 +0000 Original-Received: (at 8132) by debbugs.gnu.org; 1 Mar 2011 07:32:54 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PuK4k-0006Ab-77 for submit@debbugs.gnu.org; Tue, 01 Mar 2011 02:32:54 -0500 Original-Received: from mail102.csoft.net ([205.205.219.4]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PuJfP-0005bk-Jz for 8132@debbugs.gnu.org; Tue, 01 Mar 2011 02:06:44 -0500 Original-Received: from mail102.csoft.net (localhost [127.0.0.1]) by mail102.csoft.net (Postfix) with ESMTP id 4CEDD3EEFCA8; Tue, 1 Mar 2011 02:06:38 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=date:from:to :cc:subject:message-id:references:mime-version:content-type :in-reply-to; s=sel1; bh=dKDfKu7k1PGIVBbDBxqHGb4b4Mg=; b=Rk01X2J sfBcdXefKzLKho+DPQVP69vMyXvaZ3xaIuoox3ow0Bv8NLjM51eMmRaE/U+kdwqq 8jUyBNx2wd/XZfLTyzV8ha6n9WtMc5JBzrknLxPK9IHS21p+mYea1INbqs9Q+LGb kpEOzbc0+FT6iPA/XzldYS68oD+l/a1wwJzw= Original-Received: from lilly.csoft.net (lilly.csoft.net [205.205.219.5]) by mail102.csoft.net (Postfix) with ESMTP id F30E43EEFA2F; Tue, 1 Mar 2011 02:06:37 -0500 (EST) Original-Received: by lilly.csoft.net (Postfix, from userid 5347) id C36A628F85B; Tue, 1 Mar 2011 02:06:37 -0500 (EST) Content-Disposition: inline In-Reply-To: <83sjv7mr5h.fsf@gnu.org> User-Agent: Mutt/1.4.2.3i X-Mailman-Approved-At: Tue, 01 Mar 2011 02:32:53 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 01 Mar 2011 02:33:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Tue, 01 Mar 2011 02:43:38 -0500 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44465 Archived-At: On Tue, Mar 01, 2011 at 05:54:50AM +0200, Eli Zaretskii wrote: > > It could be easier to make a wrapper around the file completion, which > would simply convert all / into \ when the result is inserted into the > shell buffer. That's because working with / is very basic in > file-name completion, and reaches deep into the code and the > primitives it uses. > I suspect that that would break switches to commands. I.e., it would require quite involved logic to find out that in dir /a ../blah /a should not be converted to \a. So that code would have to keep track which strings have been autocompleted and change / to \ *only* in those strings. (I did not quite understand your proposal, i.e., when and which text would the conversion be applied to, so I apologize if that's what you suggested.) PS: The eshell manual is mostly empty, and when I write "help", I get the output of the cmd.exe's help. Needless to say, eshell does not recognize commands that are built-in to cmd.exe (copy, for example). I had to guess myself towards using ls and cp, but how do I then get a list of all *eshell* builtins? Furthermore, neither comint with cmd.exe nor eshell like interactive commands. I have just run "sc" which prints some usage info and a prompt like this: Would you like to see help for the QUERY and QUERYEX commands? [ y | n ]: In raw cmd.exe (own window, outside of emacs), when I press 'n', the programm immediately exits (no need to press enter after n). In eshell, nothing happens. The shell never returns to the prompt; pressing up/down arrows cycles through the history, but no input is accepted until I press C-c twice. Incidentally, the same thing happens in M-x shell, just that after pressing C-c twice, it becomes visible that all input had been given to the shell, just that the buffer hadn't been flushed. This is the output after pressing 'n ENTER' to the above prompt: -- Would you like to see help for the QUERY and QUERYEX commands? [ y | n ]: n C-c C-c c:\Users\Hue\Desktop>n 'n' is not recognized as an internal or external command, operable program or batch file. -- Pressing 'n' and C-c C-c is OK, i.e., I get the prompt and no extraneous input has been sent to the shell. -- I have also tried to run interactive Lua interpreter through M-x shell and I had the same issue with interactivity.. basically no input/output to/from the interpreter has been visible in the shell window.