GNU bug report logs - #1207
23.0.60; read-shell-command does not support Windows ".." quoting of file names with embedded white space

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs,w32; Severity: important; Reported by: Eli Zaretskii <eliz <at> gnu.org>; dated Sun, 19 Oct 2008 16:35:03 UTC; Maintainer for emacs is bug-gnu-emacs <at> gnu.org.
Severity set to 'important' from 'normal' Request was from Stefan Monnier <monnier <at> IRO.UMontreal.CA> to control <at> debbugs.gnu.org. Full text available.

Message received at 1207 <at> debbugs.gnu.org:


Received: (at 1207) by debbugs.gnu.org; 6 Jul 2011 17:13:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 06 13:13:03 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QeVep-0005mG-0a
	for submit <at> debbugs.gnu.org; Wed, 06 Jul 2011 13:13:03 -0400
Received: from mail-pz0-f44.google.com ([209.85.210.44])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <lekktu <at> gmail.com>) id 1QeVen-0005ln-FA
	for 1207 <at> debbugs.gnu.org; Wed, 06 Jul 2011 13:13:02 -0400
Received: by pzk5 with SMTP id 5so125540pzk.3
	for <1207 <at> debbugs.gnu.org>; Wed, 06 Jul 2011 10:12:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type:content-transfer-encoding;
	bh=nlT/mg4jo286IfoAZuzdGFLgmuR4Nvi27lewQIQzy1g=;
	b=bb6my0RKw4WVPXlFJZdYgrlGPT1meuZuopkY0NEeTINbFloJEVix7tdVVUkQ9FJp8s
	Uy8V/N2n3by7IPc/lSR03CgkdpGhaOmMvNpguMORWXzSTu4Euxlbt0XAu5nNR1vfJfgU
	H6WUbzi0DfJjpqwdJE1GmFv/sG5fPf6Qsv+fg=
Received: by 10.142.222.14 with SMTP id u14mr3295493wfg.309.1309972375187;
	Wed, 06 Jul 2011 10:12:55 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.144.4 with HTTP; Wed, 6 Jul 2011 10:12:14 -0700 (PDT)
In-Reply-To: <uod1gk0pj.fsf <at> gnu.org>
References: <uod1gk0pj.fsf <at> gnu.org>
From: Juanma Barranquero <lekktu <at> gmail.com>
Date: Wed, 6 Jul 2011 19:12:14 +0200
Message-ID: <CAAeL0SRi8qmmDpG4fQYK2A5ERtRo0rxehcbX6uou026iFN_yUg <at> mail.gmail.com>
Subject: Re: bug#1207: 23.0.60; read-shell-command does not support Windows
	".." quoting of file names with embedded white space
To: Eli Zaretskii <eliz <at> gnu.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -3.3 (---)
X-Debbugs-Envelope-To: 1207
Cc: 1207 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.3 (---)

On Sun, Oct 19, 2008 at 18:29, Eli Zaretskii <eliz <at> gnu.org> wrote:

> On MS-Windows:
>
> =C2=A0emacs -Q
> =C2=A0M-! "C:/Progra TAB
>
> This correctly completes to `"c:/Program Files/'. =C2=A0However, the next
> TAB fails with `[No completions of Files/]', which is an evidence that
> `read-shell-command' does not pay attention to the fact that the
> command begins with a quote character.
>
> If I type the closing quote character manually, then
>
> =C2=A0"C:/Program Files/" TAB
>
> pops up a *Completions* buffer with files in my home directory (???),
> which is again incorrect.

Not only still fails for me, I can even make it hang Emacs.

M-! "C:/Progra <TAB>   =3D> "[no match]"

M-! C:/Progra <TAB>    =3D>  c:/Program
<TAB>                  =3D> offers possible completions: "Program Files",
                          "Program Files (x86)" and "ProgramData"
<SPACE> <TAB>          =3D> no answer, not even [no match]
<BACKSPACE>
\ <SPACE> <TAB>        =3D> "[no match]"
<TAB>                  =3D> Emacs hangs

Sometimes it needs a few more <TAB>, or <BACKSPACE> <SPACE> <TAB>
again, but it hangs every time.

After interruping it, the backtrace is

(gdb) bt
#0  0x770e01c4 in ntdll!LdrFindResource_U () from C:\Windows\system32\ntdll=
.dll

Lisp Backtrace:
"pcomplete-parse-comint-arguments" (0x88d4b8)
"pcomplete-parse-arguments" (0x88d724)
0x3410480 There is no member named size.


=C2=A0 =C2=A0 Juanma




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#1207; Package emacs,w32. Full text available.
bug reassigned from package `emacs' to `emacs,w32'. Request was from Juanma Barranquero <lekktu <at> gmail.com> to control <at> emacsbugs.donarmstrong.com. Full text available.

Message received at (unknown):


Received: (at unknown) by unknown; unknown
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
	(2007-08-08) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Status: No, score=-6.7 required=4.0 tests=AWL,BAYES_00,FOURLA,
	RCVD_IN_DNSWL_MED,RCVD_IN_NIX1 autolearn=ham
	version=3.2.3-bugs.debian.org_2005_01_02
Received: (at submit) by emacsbugs.donarmstrong.com; 19 Oct 2008 16:29:33 +0000
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9JGTUDN029457
	for <submit <at> emacsbugs.donarmstrong.com>; Sun, 19 Oct 2008 09:29:31 -0700
Received: from mail.gnu.org ([199.232.76.166]:56860 helo=mx10.gnu.org)
	by fencepost.gnu.org with esmtp (Exim 4.67)
	(envelope-from <eliz <at> gnu.org>)
	id 1Krb7E-0005SN-Bn
	for emacs-pretest-bug <at> gnu.org; Sun, 19 Oct 2008 12:26:52 -0400
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60)
	(envelope-from <eliz <at> gnu.org>)
	id 1Krb9k-0005uV-F4
	for emacs-pretest-bug <at> gnu.org; Sun, 19 Oct 2008 12:29:29 -0400
Received: from mtaout3.012.net.il ([84.95.2.7]:16456)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <eliz <at> gnu.org>)
	id 1Krb9j-0005u7-I6
	for emacs-pretest-bug <at> gnu.org; Sun, 19 Oct 2008 12:29:28 -0400
Received: from HOME-C4E4A596F7 ([77.126.98.197]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K8Z00J4JV7GE482 <at> i_mtaout3.012.net.il> for emacs-pretest-bug <at> gnu.org; Sun, 19 Oct 2008 18:30:52 +0200 (IST)
Date: Sun, 19 Oct 2008 18:29:28 +0200
From: Eli Zaretskii <eliz <at> gnu.org>
Subject: 23.0.60; read-shell-command does not support Windows ".." quoting of file names with embedded white space
X-012-Sender: halo1 <at> inter.net.il
To: emacs-pretest-bug <at> gnu.org
Message-id: <uod1gk0pj.fsf <at> gnu.org>
X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1


Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug <at> gnu.org mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

On MS-Windows:

  emacs -Q
  M-! "C:/Progra TAB

This correctly completes to `"c:/Program Files/'.  However, the next
TAB fails with `[No completions of Files/]', which is an evidence that
`read-shell-command' does not pay attention to the fact that the
command begins with a quote character.

If I type the closing quote character manually, then

  "C:/Program Files/" TAB

pops up a *Completions* buffer with files in my home directory (???),
which is again incorrect.

When I try similar things on GNU/Linux, completion works correctly,
quoting whitespace with a backslash.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
d:/gnu/emacs/etc/DEBUG for instructions.


In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-10-19 on HOME-C4E4A596F7
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1255
  default-enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<return> <backspace> <C-home> <down> C-SPC <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <C-end> M-w <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
C-x b <return> C-u 7 C-x ^ C-h f <up> <up> <up> <up> 
<up> <down> <up> <down> <return> C-u 7 C-x ^ C-x o 
<down> <down> <left> <left> <left> <left> <left> <left> 
<return> C-x o C-x o <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <up> <up> <up> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <up> <up> <up> <up> <up> <C-right> <C-right> 
<C-right> <C-right> <right> <right> C-SPC <C-right> 
<C-right> <C-right> <C-right> <C-right> <C-right> <C-right> 
M-w <help-echo> <help-echo> <help-echo> <help-echo> 
M-! " C : / P r o g r <tab> M I c <tab> <backspace> 
<backspace> i c <tab> <backspace> <backspace> <tab> 
<backspace> <tab> <left> <right> <tab> <backspace> 
<tab> <tab> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <tab> <tab> <tab> 
<tab> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <backspace> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> \ C-e 
<tab> <C-left> <C-left> <C-left> " C-e <tab> <help-echo> 
C-g <down> <down> <left> <left> <left> <left> <left> 
C-h f <return> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<C-left> <C-left> <C-left> <C-left> <C-left> C-SPC 
<C-right> <C-right> <C-right> <C-right> <C-right> M-w 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <left> <left> <left> <left> <left> <left> 
C-h v <return> C-x o <next> <next> <next> <next> <prior> 
<prior> <prior> <prior> <prior> <M-home> C-x o M-! 
" C : / P r o <tab> <tab> C-g M-x r e p o r t <tab> 
<return>

Recent messages:
Mark set [2 times]
Saved text from "To: emacs-pretest-bug <at> gnu.org
Subject: 2"
Auto-saving...
Type C-x 4 C-o RET to restore the other window.
Mark set
Quit
Mark set
call-interactively: Beginning of buffer
Mark set
Quit




Acknowledgement sent to Eli Zaretskii <eliz <at> gnu.org>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text available.
Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1207; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 20 Sep 2011 19:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.