Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <00f701c1ceef$c1f5c6a0$b4546f9c@tw304h3> From: "Oleg" To: , "Randall R Schulz" References: <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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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" To: "Oleg" ; 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/