delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/10/10:55:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
content-class: urn:content-classes:message
MIME-Version: 1.0
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 AT crd DOT ge DOT com>
To: <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 10 Mar 2005 15:55:29.0787 (UTC) FILETIME=[9570C4B0:01C52589]
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/


- Raw text -


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