This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Start up script


I meant that there was no need for "function" in both of the examples given
by the previous poster. Yes, of course "function" has more functionality
than "alias", but here, it's an overkill.

Consider
alias l='ls'
vs
function l() { /bin/ls $@; }

HTH
Oleg


----- Original Message -----
From: "Randall R Schulz" <rrschulz@cris.com>
To: "Oleg" <oleg_inconnu@yahoo.com>; <cygwin@cygwin.com>
Sent: Monday, March 18, 2002 9:28 PM
Subject: Re: Start up script


> Oleg,
>
> At 18:06 2002-03-18, Oleg wrote:
> >----- Original Message -----
> >...
> >
> >are the ones I use often. No need for "function" BTW
>
> You'll need functions when it's not sufficient to have the parameters to a
> command simply tacked onto the end of the alias expansion.
>
> If I recall, this is one place where BASH is not capable something CSH can
> do: namely support the full syntax of !-expansions within an alias.
>
>
> >Oh,and don't forget the all-time most important piece of  .bashrc setup
> >when you are logged in as someone else: Run
> >
> >echo "echo sleep 1 >> .bashrc" >> .bashrc
> >
> >#(damn this system gets slower every time I log in :)
> >
> >HTH
> >Oleg
>
> Randall Schulz
> Mountain View, CA USA
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]