GNU bug report logs - #34665
M-x shell expansion fooled by "\|"

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Tue, 26 Feb 2019 13:38:02 UTC

Severity: minor

Tags: confirmed

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: M-x shell expansion fooled by "\|"
Date: Tue, 26 Feb 2019 21:37:01 +0800
M-x shell
$ grep -l \| o<TAB> #Here it thinks we are piping, because it didn't
notice the backslash, so offers bin/* completions, not ./* completions.
$ grep -l \| x o<TAB> #Here I need to add the x to get it to finally
expand filenames.
$ grep -l '|' x x x o<TAB> #Here no amount of x's will finally let us
expand anything!
P.S., "grep -l" doesn't matter, you could even just use ":" (null
command).
By the way,
$ grep string <TAB> #Doesn't expand anything, also doesn't give a list of
completions. One has to help it get started:
$ grep string o<TAB>




This bug report was last modified 6 years and 162 days ago.

Previous Next


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