From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [NT] Problem with `man' function Date: Sat, 05 Nov 2005 21:21:51 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1131218662 30138 80.91.229.2 (5 Nov 2005 19:24:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 Nov 2005 19:24:22 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 05 20:24:21 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EYTd4-0001ib-Vt for ged-emacs-devel@m.gmane.org; Sat, 05 Nov 2005 20:23:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYTd4-0006qZ-8k for ged-emacs-devel@m.gmane.org; Sat, 05 Nov 2005 14:23:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EYTbu-0006Na-UD for emacs-devel@gnu.org; Sat, 05 Nov 2005 14:21:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EYTbs-0006Mu-UC for emacs-devel@gnu.org; Sat, 05 Nov 2005 14:21:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYTbs-0006Mp-7l for emacs-devel@gnu.org; Sat, 05 Nov 2005 14:21:52 -0500 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EYTbs-0007TT-2z for emacs-devel@gnu.org; Sat, 05 Nov 2005 14:21:52 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-59-35.inter.net.il [80.230.59.35]) by nitzan.inter.net.il (MOS 3.6.5-GR) with ESMTP id BWI65968 (AUTH halo1); Sat, 5 Nov 2005 21:21:45 +0200 (IST) Original-To: David Abrahams In-reply-to: (message from David Abrahams on Thu, 27 Oct 2005 07:00:27 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45467 Archived-At: > From: David Abrahams > Cc: rms@gnu.org, emacs-devel@gnu.org > Date: Thu, 27 Oct 2005 07:00:27 -0400 > > Eli Zaretskii writes: > > > To try to debug and fix it, I need to know: > > > > (1) What shell is being used to run the commands in the pipeline > > that produces the man page; > > The regular Windows XP shell (CMD) > > > (2) What ports of gawk and Sed are used (presumably Cygwin, but > > that's a guess). > > Cygwin > GNU Awk 3.1.5 > GNU sed version 4.1.4 I tried to debug this, but I'm sorry to say that I cannot reproduce exactly the behavior you describe. "M-x man" indeed fails for me in the Windows port, but the error message displayed by Emacs is different: sed: -e expression #1, char 1: unknown command: `'' awk: ' awk: ^ invalid char ''' in expression process exited abnormally with code 1 The messages from Sed and Awk say quite unequivocally that the problem is with the quoting style: Windows shells and programs don't support the '..' quoting that man.el uses. I tried to replace '..' quoting with ".." quoting, but then bumped into other bugs, this time in Sed. It sounds like the GnuWin32 port of Sed is hopelessly broken. Or it could be a bug with cmdproxy.exe, I really don't have time to dig into that. Perhaps with the Cygwin ports you have man.el will work if you replace '..' quoting with ".." quoting in the Sed and Awk scripts used by man.el. Could you perhaps try that? Failing that, I suggest to use woman.el.