From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.help Subject: Re: eshell & find Date: Thu, 06 Mar 2003 14:21:32 -0700 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <871y1k6vj7.fsf@alice.dynodns.net> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046986222 7374 80.91.224.249 (6 Mar 2003 21:30:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 6 Mar 2003 21:30:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 06 22:30:17 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18r2ve-0001r1-00 for ; Thu, 06 Mar 2003 22:29:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18r2rt-0003Jm-00 for gnu-help-gnu-emacs@m.gmane.org; Thu, 06 Mar 2003 16:25:33 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-04!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:ZyKTplJD0fjOik0fXeBI5lncr8Y= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 14 Original-Xref: shelby.stanford.edu gnu.emacs.help:110894 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7395 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7395 Peter Lee writes: > After more experimentation I tried the following: > > find . -iregex ".*\\.cpp\\|.*\\.h" > > And that works as expected from eshell... So why do I need to > backlashes to escape from eshell but not a normal shell? Because Eshell is basically passing your string on to Lisp, which needs the double-backslashing. It's the same behavior expected by bash. In this case, cmd.exe is the oddball. John