unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [NT] Problem with `man' function
Date: Sun, 23 Oct 2005 18:25:55 +0200	[thread overview]
Message-ID: <uy84kgpyk.fsf@gnu.org> (raw)
In-Reply-To: <uwtk4fnkf.fsf@boost-consulting.com> (message from David Abrahams on Sun, 23 Oct 2005 08:02:56 -0400)

> From: David Abrahams <dave@boost-consulting.com>
> Date: Sun, 23 Oct 2005 08:02:56 -0400
> 
> With Cygwin installed and in my PATH, `M-x man' used to work fine for
> me.  In the past year, it has stopped working; all I get is "error in
> process sentinel. Can't find the xxx manpage."  I was able to work
> around the problem either by setting  shell-file-name to 
> 
>   "sh" 
> 
> or, guessing that it was a CMD.EXE line length issue, by shortening
> Man-filter-list to
> 
>   (("sed" "" "-e '/^[^A-^Z][^A-^Z]*$/d'" "-e '/^[[789]/s///g'" ))

I don't think this has anything to do with CMD command-line
limitations: the filter script is only about 700 characters, much less
than the CMD's 2KB command limitation.  Quoting arguments with '..',
however (see above) might very well be the reason for the failure when
CMD is the shell, because Windows programs in general don't understand
'..' quoting, and CMD, unlike Bash, doesn't remove the '' from
command-line arguments.

> I don't know what the best fix might be.

It would be best if you debugged the problem and told us precisely
what the problem was; your description sounds like you aren't really
sure.  It could as well be a Cygwin bug, or some change in Emacs that
exposes a Cygwin bug.

> Can anyone tell me the implications of setting shell-file-name to
> "sh?"

All your shell commands will be run via (presumably Cygwin port of)
Bash, so native CMD commands will have to be preceded by "cmd /c".

  reply	other threads:[~2005-10-23 16:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-23 12:02 [NT] Problem with `man' function David Abrahams
2005-10-23 16:25 ` Eli Zaretskii [this message]
2005-10-24  1:00 ` Richard M. Stallman
2005-10-25 22:06   ` David Abrahams
2005-10-27  1:29     ` Richard M. Stallman
2005-10-27  5:06       ` Eli Zaretskii
2005-10-27 11:00         ` David Abrahams
2005-11-05 19:21           ` Eli Zaretskii
2006-05-10 20:54             ` Dave Abrahams
2006-05-11  3:49               ` Eli Zaretskii
2006-05-11  4:26                 ` David Abrahams
2006-05-11 11:44                   ` David Abrahams
2006-05-11 18:36                     ` Eli Zaretskii
2006-05-11 20:23                       ` David Abrahams

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uy84kgpyk.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).