all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: furue@hawaii.edu
To: help-gnu-emacs@gnu.org
Subject: eshell:  how to alias cp 'cp -i'  ?
Date: Tue, 04 Sep 2007 12:18:52 -0700	[thread overview]
Message-ID: <1188933532.622355.111700@d55g2000hsg.googlegroups.com> (raw)

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

             reply	other threads:[~2007-09-04 19:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-04 19:18 furue [this message]
2007-09-05  0:36 ` eshell: how to alias cp 'cp -i' ? David Hansen
     [not found] ` <mailman.329.1188952757.18990.help-gnu-emacs@gnu.org>
2007-09-05 19:46   ` Stefan Reichör
2007-09-05 23:45     ` furue
2007-09-06 16:13       ` Edward O'Connor
     [not found]       ` <mailman.424.1189095248.18990.help-gnu-emacs@gnu.org>
2007-09-07  7:05         ` furue
2007-09-07  7:24         ` furue
2007-09-07 21:44       ` Peter Dyballa
     [not found]       ` <mailman.479.1189201469.18990.help-gnu-emacs@gnu.org>
2007-09-07 22:08         ` furue
2007-09-07 23:08           ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1188933532.622355.111700@d55g2000hsg.googlegroups.com \
    --to=furue@hawaii.edu \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.