Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Charles Wilson <cwilson@ece.gatech.edu>
Newsgroups: gmane.os.cygwin
Subject: Re: cygwin wrapper aclocal doesn't handle multiple -I options ?
Date: Wed, 26 Jun 2002 11:35:13 -0400
Lines: 28
Message-ID: <3D19DF31.1080905@ece.gatech.edu>
References: <3D192F3C.6050102@ece.gatech.edu> <INEKLKBFCDBPKMKAJLMDOENKCEAA.bab@vx.com>
NNTP-Posting-Host: 1cust246.tnt11.atl4.da.uu.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: main.gmane.org 1025105678 9492 65.234.238.246 (26 Jun 2002 15:34:38 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Wed, 26 Jun 2002 15:34:38 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us



Bernard A Badger wrote:

> You should allow file names with spaces in them.
> Use:
> 	opt_i="$opt_i -I '$1'"
> 
> BTW, a better name would be opt_I, not opt_i, since the option is -I, not -i.
> 
>


It's too late for this release of the wrappers, but patches gratefully 
accepted for the future.  However, your suggestion won't work:

"$opt_i -I '$1'"

using single quotes prevents $1 from being expanded at all.  What you'd 
need to do is something like:

"$opt_i -I \"$1\""

But I'm not sure if those doublequotes will be safe after multiple 
re-expansions as $opt_i is built and extended.  This needs some testing.

--Chuck




--
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/

