Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Wheeler, Frederick W \(Research\)" To: 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/