delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/10/23:52:56

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Fri, 10 Oct 2003 23:52:33 -0400
From: Christopher Faylor <cgf-rcm AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: problem with lilypond-profile.sh
Message-ID: <20031011035232.GA20395@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Mime-Version: 1.0
User-Agent: Mutt/1.4.1i

I don't see this reported anywhere yet, and I'm surprised.  Apologies
if I just missed something.

You have to quote arguments inside [ ] or bad things(tm) happen.

In particular, without the below patch, rxvt is unable to run
/bin/sh as a login shell and flashes a warning on the screen.

Please apply for next lilypond release.

cgf

--- lilypond-profile.sh~	2003-10-10 23:46:14.000000000 -0400
+++ lilypond-profile.sh	2003-10-10 23:47:02.000000000 -0400
@@ -19,7 +19,7 @@
     return 2
 fi
 
-if [ `basename "$0"` = "lilypond-profile" ] ; then 
+if [ "`basename \"$0\"`" = "lilypond-profile" ] ; then 
     cat >/dev/stderr <<EOF
     
 Error: This script cannot be run in a subshell; it MUST be sourced.

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