all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* eshell:  how to alias cp 'cp -i'  ?
@ 2007-09-04 19:18 furue
  2007-09-05  0:36 ` David Hansen
       [not found] ` <mailman.329.1188952757.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 10+ messages in thread
From: furue @ 2007-09-04 19:18 UTC (permalink / raw)
  To: help-gnu-emacs

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-09-07 23:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-04 19:18 eshell: how to alias cp 'cp -i' ? furue
2007-09-05  0:36 ` 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

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.