From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan =?iso-8859-1?Q?Reich=F6r?= Newsgroups: gmane.emacs.help Subject: Re: eshell: how to alias cp 'cp -i' ? Date: Wed, 05 Sep 2007 21:46:05 +0200 Organization: Tele2UTA Telecommunications GmbH Message-ID: <87y7fksxoi.fsf@utanet.at> References: <1188933532.622355.111700@d55g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189024840 19072 80.91.229.12 (5 Sep 2007 20:40:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2007 20:40:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 05 22:40:41 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 1IT1g0-0001o4-Ci for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Sep 2007 22:40:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IT1fy-0005L4-Fm for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Sep 2007 16:40:38 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newshunter!cosy.sbg.ac.at!newsfeed.utanet.at!newsreader2.utanet.at!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: linzu2-214-219.utaonline.at Original-X-Trace: newsreader2.utanet.at 1189021606 5355 212.152.214.219 (5 Sep 2007 19:46:46 GMT) Original-X-Complaints-To: abuse@uta.at Original-NNTP-Posting-Date: Wed, 5 Sep 2007 19:46:46 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) Cancel-Lock: sha1:7eMgwDzWQzAiiKLrPOnN35riJbM= Original-Xref: shelby.stanford.edu gnu.emacs.help:151725 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:47249 Archived-At: David Hansen writes: > On Tue, 04 Sep 2007 12:18:52 -0700 furue@hawaii.edu wrote: > >> I'm new to eshell and am wondering how to alias >> "cp" to "cp -i". As a first step, I tried this: > > I have the line > > alias mp mplayer $* > > in the file ~/.eshell/alias and it seems to be working. But I forget > how the line ended up there. Just manually adding should work. > > David I have the following alias defined: alias l 'ls -la $*' This allows to issue commands like l e* I tried the following: alias tcp 'cp -i $*' But this didn't work. That is probably an emacs bug. When you only want to copy one file to a destination, you can use the following: alias tcp 'cp -i $1 $2' Stefan.