Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Subject: Re: /etc/profile.d/lilypond-profile.sh and basename
Date: Thu, 10 Mar 2005 10:56:52 -0500
Message-ID: <B744015F9200AA49B4E03549EED88B98A2712B@SCHMLVEM01.e2k.ad.ge.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
From: "Wheeler, Frederick W \(Research\)" <wheeler@crd.ge.com>
To: <cygwin@cygwin.com>
X-OriginalArrivalTime: 10 Mar 2005 15:55:29.0787 (UTC) FILETIME=[9570C4B0:01C52589]
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j2AFtZEr026024


> I think that just adding a -- is a better fix:
>
> if [ -z "$ZSH_NAME" -a `basename -- "$0"` = "lilypond-profile" ] ; the
>
> cgf

This also fixes the problem for me and is clearly the better solution.  basename --help does not mention this option.

Fred Wheeler

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


