From: zvrba@zvrba.net
To: Eli Zaretskii <eliz@gnu.org>
Cc: zvrba.external@zvrba.net, 8132@debbugs.gnu.org
Subject: bug#8132: 23.1; comint shell replaces \ in paths with /
Date: Tue, 1 Mar 2011 02:06:37 -0500 [thread overview]
Message-ID: <20110301070637.GA86881@lilly.csoft.net> (raw)
In-Reply-To: <83sjv7mr5h.fsf@gnu.org>
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.
next prev parent reply other threads:[~2011-03-01 7:06 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-27 13:27 bug#8132: 23.1; comint shell replaces \ in paths with / Zeljko Vrba
2011-02-28 3:32 ` Stefan Monnier
2011-02-28 14:59 ` Zeljko Vrba
2011-02-28 15:47 ` Lennart Borgman
2011-02-28 17:47 ` Zeljko Vrba
2011-02-28 17:57 ` Lennart Borgman
2011-02-28 22:05 ` Zeljko Vrba
2011-02-28 22:32 ` Lennart Borgman
2011-02-28 18:34 ` Eli Zaretskii
2011-02-28 22:10 ` Zeljko Vrba
2011-02-28 23:04 ` Stefan Monnier
2011-03-01 3:54 ` Eli Zaretskii
2011-03-01 4:48 ` Stefan Monnier
2011-03-01 7:06 ` zvrba [this message]
2011-03-01 9:02 ` Michael Albinus
2011-03-01 18:27 ` Eli Zaretskii
2011-03-02 8:42 ` Michael Albinus
2011-03-02 18:41 ` Eli Zaretskii
2011-03-03 9:31 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110301070637.GA86881@lilly.csoft.net \
--to=zvrba@zvrba.net \
--cc=8132@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=zvrba.external@zvrba.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.