delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/18/21:42:34

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <00f701c1ceef$c1f5c6a0$b4546f9c@tw304h3>
From: "Oleg" <oleg_inconnu AT yahoo DOT com>
To: <cygwin AT cygwin DOT com>, "Randall R Schulz" <rrschulz AT cris DOT com>
References: <AHENJAAPGAHKCFPLDPOJIEGKCBAA DOT relaxedrob AT optushome DOT com DOT au> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020318182007 DOT 025360d0 AT pop3 DOT cris DOT com>
Subject: Re: Start up script
Date: Mon, 18 Mar 2002 21:42:48 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

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 AT cris DOT com>
To: "Oleg" <oleg_inconnu AT yahoo DOT com>; <cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019