all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stefan Reichör" <stefan@xsteve.at>
To: help-gnu-emacs@gnu.org
Subject: Re: eshell:  how to alias cp 'cp -i'  ?
Date: Wed, 05 Sep 2007 21:46:05 +0200	[thread overview]
Message-ID: <87y7fksxoi.fsf@utanet.at> (raw)
In-Reply-To: mailman.329.1188952757.18990.help-gnu-emacs@gnu.org

David Hansen <david.hansen@gmx.net> 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.

  parent reply	other threads:[~2007-09-05 19:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=87y7fksxoi.fsf@utanet.at \
    --to=stefan@xsteve.at \
    --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.