From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: furue@hawaii.edu Newsgroups: gmane.emacs.help Subject: Re: eshell: how to alias cp 'cp -i' ? Date: Wed, 05 Sep 2007 16:45:37 -0700 Organization: http://groups.google.com Message-ID: <1189035937.564847.293110@50g2000hsm.googlegroups.com> References: <1188933532.622355.111700@d55g2000hsg.googlegroups.com> <87y7fksxoi.fsf@utanet.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1189039235 26565 80.91.229.12 (6 Sep 2007 00:40:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Sep 2007 00:40:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 06 02:40:35 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IT5QA-0002Nh-9H for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Sep 2007 02:40:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IT5Q8-0004Xa-MD for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Sep 2007 20:40:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!50g2000hsm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: 128.171.156.62 Original-X-Trace: posting.google.com 1189035937 23303 127.0.0.1 (5 Sep 2007 23:45:37 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 5 Sep 2007 23:45:37 +0000 (UTC) In-Reply-To: <87y7fksxoi.fsf@utanet.at> User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.22 (X11; Linux i686; U; en),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 50g2000hsm.googlegroups.com; posting-host=128.171.156.62; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:151738 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47263 Archived-At: On Sep 5, 9:46 am, Stefan Reich=F6r wrote: > David Hansen writes: > > On Tue, 04 Sep 2007 12:18:52 -0700 fu...@hawaii.edu wrote: [ . . . ] > I tried the following: > alias tcp 'cp -i $*' > > But this didn't work. That is probably an emacs bug. Thank you, David and Stefan, for the responses. I thought I posted a replay yesterday, but it doesn't appear here. (Probably I hit the "Discard" button instead of the "Send".) Anyway, my experience is the same. Alias to 'cp -i $*' doesn't work for me, either. My tentative solution is alias cp /bin/cp -i $* which works. This is asthetically incorrect because it doesn't use eshell's builtin cp. I'm also wondering where I can find documentations of eshell. I want/need to learn more, such as "for" loop and "if" constructs and function definition. Cheers, Ryo