Thread View: gnu.bash.bug
1 messages
1 total messages
Started by Doug Schmidt
Thu, 07 Sep 1989 18:03
bash aliases
Author: Doug Schmidt
Date: Thu, 07 Sep 1989 18:03
Date: Thu, 07 Sep 1989 18:03
30 lines
1436 bytes
1436 bytes
Hi,
I'm trying to convert aliases in my .cshrc file into equivalent aliases
in .bashrc. Is there anyway to get the equivalent of Csh's:
alias g++ "/usr/gnu/g++ -O \!* -lg++"
using bash aliases? There doesn't seem to be a way to substitute
arguments when using bash aliases. I assume one could use shell
functions for this, but that seems like overkill.
Also, Bolsky and Korn's recent book on ``The Korn Shell'' describes
the $(< filename) construct, which serves the same purpose as
$(cat filename) or `cat filename`, but is faster. This feature doesn't
seem to work with bash 1.03, i.e.:
foo=$(cat .cshrc)
works fine, but
foo=$(< .cshrc)
fails (it sets foo to null).
Doug
--
schmidt@ics.uci.edu (ARPA) | Per me si va nella citta' dolente.
office: (714) 856-4043 | Per me si va nell'eterno dolore.
| Per me si va tra la perduta gente.
| Lasciate ogni speranza o voi ch'entrate.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads