all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs 23.3 with Cygwin bash and '\r'.
Date: Fri, 11 Mar 2011 11:00:09 +0200	[thread overview]
Message-ID: <837hc6uj52.fsf@gnu.org> (raw)
In-Reply-To: <ilcmn7$6jn$1@dough.gmane.org>

> From: Oleksandr Gavenko <gavenko@bifit.com.ua>
> Date: Fri, 11 Mar 2011 10:32:44 +0200
> 
> On 10.03.2011 19:34, Eli Zaretskii wrote:
> >> From: Oleksandr Gavenko<gavenko@bifit.com.ua>
> >> Date: Thu, 10 Mar 2011 18:30:41 +0200
> >>
> >> I get latest Emacs 23.3:
> >>
> >>     http://permalink.gmane.org/gmane.emacs.announce/19
> >>
> >> and it loaded successfully, but previously all Emacs after setting:
> >>
> >>          (setq shell-file-name "bash")
> >>          (setenv "SHELL" "/bin/bash")
> >>
> >> work fine and now shell say:
> >>
> >>   $ pwd
> >> bash: $'pwd\r': команда не найдена
> >
> > Doesn't that \r give a hint?
> >
> Sorry, no ))

What value do you get if you evaluate the following expression:

   (process-coding-system (get-process "shell"))

You can do the evaluation with M-:

Since you are using the Cygwin bash, you need to use undecided-unix
(or something -unix, anyway) in the cdr of the cons cell that is
returned by process-coding-system.  You can probably use
set-process-coding-system to change the defaults.

(Btw, if your Emacs is a native Windows build, then you should expect
these surprises, because native Windows programs and Cygwin programs
are subtly incompatible, the matters related to EOL format being one
of the aspects of this incompatibility.  Why not use the Cygwin build
of Emacs instead?)

> In *Message* buffer I get:
> 
> #("ls\n" 0 2
>    (fontified t))
> 
> So no any \r pass to filter!!

Encoding and decoding works below the Lisp level.




  reply	other threads:[~2011-03-11  9:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-10 16:30 Emacs 23.3 with Cygwin bash and '\r' Oleksandr Gavenko
2011-03-10 17:34 ` Eli Zaretskii
2011-03-11  8:32   ` Oleksandr Gavenko
2011-03-11  9:00     ` Eli Zaretskii [this message]
2011-03-11 10:29       ` Oleksandr Gavenko

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=837hc6uj52.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.