Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!usc!orion.cf.uci.edu!uci-ics!news From: schmidt@zola.ics.uci.edu (Doug Schmidt) Newsgroups: gnu.bash.bug Subject: bash aliases Message-ID: <1989Sep7.180323.28934@paris.ics.uci.edu> Date: 7 Sep 89 18:03:23 GMT Reply-To: schmidt@zola.ics.uci.edu (Doug Schmidt) Organization: University of California, Irvine - Dept of ICS Lines: 30 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.