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: eshell: how to alias cp 'cp -i' ? Date: Tue, 04 Sep 2007 12:18:52 -0700 Organization: http://groups.google.com Message-ID: <1188933532.622355.111700@d55g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1188939690 22350 80.91.229.12 (4 Sep 2007 21:01:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Sep 2007 21:01:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 04 23:01:28 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 1ISfWW-0001cp-Lw for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Sep 2007 23:01:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISfWU-0001jl-BB for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Sep 2007 17:01:22 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!d55g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 128.171.156.62 Original-X-Trace: posting.google.com 1188933532 25268 127.0.0.1 (4 Sep 2007 19:18:52 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 4 Sep 2007 19:18:52 +0000 (UTC) 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: d55g2000hsg.googlegroups.com; posting-host=128.171.156.62; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:151686 X-Mailman-Approved-At: Tue, 04 Sep 2007 17:01:06 -0400 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:47215 Archived-At: Hello, I'm new to eshell and am wondering how to alias "cp" to "cp -i". As a first step, I tried this: ~ $ alias tmpcp 'cp -i' ~ $ tmpcp tmp.eps tmp2.eps cp: missing destination file or directory ~ $ I don't find a/the documentation (the info page on the eshell alias is empty on my system, which is emacs22 on the testing distribution of Debian), or I fail to find a solution in the archive of this group (the lastest posting which is more or less relevent is dated 2001 or so). I don't insist on aliases. Something like (defun cp (args) (builtin-cp -i args)) would do, too. (I'm a lisp newbie, too, so I'm sure that the code above is wrong.) Thank you, Ryo