Re: simple alias doesn't work
- From: Barry Margolin <barmar@xxxxxxxxxxxx>
- Date: Wed, 27 Sep 2006 23:10:36 -0400
In article <1159390759.332994.273250@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
quikgun@xxxxxxxxx wrote:
bpatton@xxxxxx wrote:
I'm running on a linux box and trying to get this simple alias to
function
alias tvim "xterm -e vim $* &"
I want it to pop a new xterm with the vim editor open.
example input
$ tvim a b c d
A new xterm opens with vim and 4 files in vim's buffers.
alias tvim='xterm -e vim $@'
try that.
That's Bourne shell, but he's apparently using C shell (I think he said
so explicitly in a followup post).
And Bourne shell aliases don't support parameters, so why do you think
your use of $@ would work?
--
Barry Margolin, barmar@xxxxxxxxxxxx
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
.
- References:
- simple alias doesn't work
- From: bpatton
- Re: simple alias doesn't work
- From: quikgun
- simple alias doesn't work
- Prev by Date: Re: duplicate entries - compare files
- Next by Date: Re: finding libraries
- Previous by thread: Re: simple alias doesn't work
- Next by thread: ps command differs in ksh and bash
- Index(es):
Relevant Pages
|