schmidt@zola.ics.uci.edu (Doug Schmidt) (09/08/89)
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.