[EMAIL PROTECTED]([EMAIL PROTECTED]) is reported to have said:
> On 1/19/07, Wayne Topa <[EMAIL PROTECTED]> wrote:
> >[EMAIL PROTECTED]([EMAIL PROTECTED]) is reported to have 
> >said:
> >> On 1/19/07, cassiano <[EMAIL PROTECTED]> wrote:
> >> >Why not just
> >> >
> >> >$ echo alias aliasname=\"alias commands\" >> ~/.bashrc
> >[--snip --]
> >> ...and have it work?  Aliases don't support $1 or $@, do they?
> >
> >They do here
> >alias deps='apt-cache showpkg $1'
> >alias policy="apt-cache policy $1"
> >alias 4page="a2ps --medium=Letter -4 $1"
> 
> Ok, but how about one with $1 not at the end?  Like:
> 
> alias testarg="echo $1 was the testarg"
> 
> I get "bell-style was the testarg blah" when I run $(testargh blah).

Think about it.

I like to use real world examples.  If you want to play then 
go ahead.

alias pslpt="cat $1 | psnup -2 -pletter | lpr"

Bye
Wayne

-- 
"I do not fear computers.  I fear the lack of them."
                -- Isaac Asimov
_______________________________________________________


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to