From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#34665: M-x shell expansion fooled by "\|" Date: Tue, 26 Feb 2019 21:37:01 +0800 Message-ID: <87d0newu0y.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="15578"; mail-complaints-to="usenet@blaine.gmane.org" To: 34665@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 26 14:38:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gycw4-0003uc-Jg for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Feb 2019 14:38:17 +0100 Original-Received: from localhost ([127.0.0.1]:55469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gycw3-0005Kc-KZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Feb 2019 08:38:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44716) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gycvw-0005KK-Su for bug-gnu-emacs@gnu.org; Tue, 26 Feb 2019 08:38:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gycvt-0003AX-BA for bug-gnu-emacs@gnu.org; Tue, 26 Feb 2019 08:38:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38808) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gycvq-00037r-Q6 for bug-gnu-emacs@gnu.org; Tue, 26 Feb 2019 08:38:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gycvq-0001nD-HW for bug-gnu-emacs@gnu.org; Tue, 26 Feb 2019 08:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Feb 2019 13:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34665 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15511882636864 (code B ref -1); Tue, 26 Feb 2019 13:38:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Feb 2019 13:37:43 +0000 Original-Received: from localhost ([127.0.0.1]:52352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gycvW-0001me-Tw for submit@debbugs.gnu.org; Tue, 26 Feb 2019 08:37:43 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gycvU-0001mP-PP for submit@debbugs.gnu.org; Tue, 26 Feb 2019 08:37:41 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37679) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gycvJ-0002gn-2e for submit@debbugs.gnu.org; Tue, 26 Feb 2019 08:37:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gycvF-000575-Qe for bug-gnu-emacs@gnu.org; Tue, 26 Feb 2019 08:37:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gycv5-0002Y7-Fl for bug-gnu-emacs@gnu.org; Tue, 26 Feb 2019 08:37:18 -0500 Original-Received: from catfish.maple.relay.mailchannels.net ([23.83.214.32]:5985) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gycv3-0002UI-VG for bug-gnu-emacs@gnu.org; Tue, 26 Feb 2019 08:37:15 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id EC1C55C5448 for ; Tue, 26 Feb 2019 13:37:05 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a78.g.dreamhost.com (unknown [100.96.36.131]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 891445C2BC8 for ; Tue, 26 Feb 2019 13:37:05 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a78.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.3); Tue, 26 Feb 2019 13:37:05 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Wide-Eyed-Bored: 4a85ff2974327244_1551188225668_3594154517 X-MC-Loop-Signature: 1551188225668:4045307575 X-MC-Ingress-Time: 1551188225667 Original-Received: from pdx1-sub0-mail-a78.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a78.g.dreamhost.com (Postfix) with ESMTP id 2F6EE807FE for ; Tue, 26 Feb 2019 05:37:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=Zi0zVbLVeLdjrCs1M6juVsO2gdc=; b=B5r2pSUeTkQfr/hr dwsx7nphLAjuRlk9jGzNOJZ6dpD4Vi0/7T2ljjQ21y/qvhRkeU2sdWnc1VsG7oOK Z42issmq5Jm/5zwo/26SEXb+o9giy4L3ahcEE/MtEaY0qMqUKZhMLH1coH+5EKmf S4IBkil1cptB9fGTWk+yheKLZT8= Original-Received: from jidanni.org (36-234-96-239.dynamic-ip.hinet.net [36.234.96.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a78.g.dreamhost.com (Postfix) with ESMTPSA id B7C39807E6 for ; Tue, 26 Feb 2019 05:37:04 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a78 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrudelgdehiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppeefiedrvdefgedrleeirddvfeelnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepfeeirddvfeegrdeliedrvdefledprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:155805 Archived-At: M-x shell $ grep -l \| o #Here it thinks we are piping, because it didn't notice the backslash, so offers bin/* completions, not ./* completions. $ grep -l \| x o #Here I need to add the x to get it to finally expand filenames. $ grep -l '|' x x x o #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 #Doesn't expand anything, also doesn't give a list of completions. One has to help it get started: $ grep string o