🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #551

bash aliases

#551
From: Doug Schmidt
Date: Thu, 07 Sep 1989 18:03
30 lines
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.
Technical Details
Message-ID: <1989Sep7.180323.28934@paris.ics.uci.edu>
Path: arc1-ca.pugleaf.net!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

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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