delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/23/12:29:04

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
From: "John Morrison" <john DOT r DOT morrison AT ntlworld DOT com>
To: "Sandro Bonazzola" <sandrobonazzola AT users DOT sourceforge DOT net>,
"Ronald Landheer-Cieslak" <ronald AT landheer DOT com>
Cc: <cygwin AT cygwin DOT com>
Subject: RE: cygwin bash profile / Windows ME
Date: Mon, 23 Feb 2004 17:28:47 -0000
Message-ID: <NCEBJJFMCAOKNNABBFIMCEAHFHAA.john.r.morrison@ntlworld.com>
MIME-Version: 1.0
In-Reply-To: <40388CA8.6000304@users.sourceforge.net>
X-IsSubscribed: yes

Thanks Sandro,

I've made a slight change to your suggestion,

> From: Sandro Bonazzola
>
> Under Windows ME the 'uname -s' command reports: "CYGWIN_ME-4.90".
> The /etc/profile file says:
>

CYGWIN_9?-* | CYGWIN_ME-*)
	PRINTER="`regtool -q get
'\config\System\CurrentControlSet\Control\Print\Printers\Default'`"
 	;;
esac

since they are otherwise identical :)

> which seems to work for my system.
>
> Another problem is that here:
> case "$0" in
> bash     | -bash     | */bash | \
> bash.exe | -bash.exe | */bash.exe )
>
> the script didn't recognize correctly bash due to case sensitive
> matching, as $0 is "/usr/bin/BASH".
> I've solved appending */BASH as option in the case statement.

I didn't realise this was the case, consider it added (I'll
assume it's the same for all the other shells and add them too).

> I hope to had been helpfull.

Feedback/suggestions always is - thanks.

> (I'm sorry if there are english error, I don't have many occasion to use
> this language.)

Your English was perfectly clear, better than some native
speakers I've been talking to lately :)

J.


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