delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/05/16:29:52

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
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-envelope-info: <rschulz AT sonic DOT net>
Message-Id: <5.2.1.1.2.20030505132815.04df07a0@pop.sonic.net>
X-Sender: rschulz AT pop DOT sonic DOT net
Date: Mon, 05 May 2003 13:30:10 -0700
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rschulz AT sonic DOT net>
Subject: Re: skel ~/.bashrc (was RE: HOME)
In-Reply-To: <002a01c31343$cd03f0f0$78d96f83@pomello>
References: <NGBBLLIAMFLGJEOAJCCEIEEOCPAA DOT garbage_collector AT telia DOT com>
Mime-Version: 1.0

Hannu, Max,

Aliases permit no manipulation of arguments or anything but simple 
left-hand expansion of the alias name with a fixed replacement string.

Shell procedures are as flexible as scripts and don't require file access.

Don't forget to use "return" in place of "exit" in shell procedures!

Randall Schulz


At 13:20 2003-05-05, Max Bowsher wrote:
>Hannu E K Nevalainen (garbage mail) wrote:
>
> > $ info Bash # says that shell functions are preferable to aliases...
> >   anyone who can explain?
>
>Well, I prefer shell functions because I can export them to subshells,
>whereas aliases don't permit that.
>
>Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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