[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
trouble porting csh alais
From: |
Larry Spitz |
Subject: |
trouble porting csh alais |
Date: |
Sat, 17 May 2003 16:25:31 +1200 |
User-agent: |
Mutt/1.4.1i |
The gnu.bash.bug newsgroup seems to be dormant and I can't find an answer to
this one by google, so here goes.
When using csh I have an alias "alias v \!vi"
This allows me to re-edit the same file I last edited by just typing "v"
I tried recasting this for bash without success.
I have read the relevant parts of the "Learning the bash shell" book by Newham
and Rosenblatt. No help.
I then found a reference to aliasconv.sh and used it. The result was "v () {
command !vi ; }". This also does not work. I get:
[spitz@roscoe spitz]$ v
bash: !vi: command not found
I have tried encasing the !vi in single quotes, double quotes, prepending a \,
all without success.
Any help would be appreciated.
Larry Spitz
--
DocRec Ltd
www.docrec.com
- trouble porting csh alais,
Larry Spitz <=