delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/20/23:44:30

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3AE1034A.5A7423BA@acedsl.com>
Date: Fri, 20 Apr 2001 23:49:30 -0400
From: "Matthew O. Persico" <persicom AT acedsl DOT com>
X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin <cygwin AT cygwin DOT com>
Subject: ksh to bash question

Not exactly a cygwin question, but since I am converting to Cygwin...

In KSH, you could take each shell function, put it in its own file, set
the FPATH envvar to point where the files are and then invoke functions.
The first time the function is called, the FPATH is searched. If the
file is found is is sourced and executed. Subsequent invokations are
merely executed.

In BASH, does one have to explicitly source all functions before first
use or does FPATH (or its equivilent) exist? If not, where are functions
traditionally stored and where (.bash_profile, .bashrc, etc) are they
sourced?

Thanks
-- 
Matthew O. Persico
    
http://www.acecape.com/dsl
AceDSL:The best ADSL in Verizon area

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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