www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/22/06:41:07

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
Message-ID: <40388CA8.6000304@users.sourceforge.net>
Date: Sun, 22 Feb 2004 12:04:08 +0100
From: Sandro Bonazzola <sandrobonazzola AT users DOT sourceforge DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; it-IT; rv:1.6) Gecko/20040113
MIME-Version: 1.0
To: Ronald Landheer-Cieslak <ronald AT landheer DOT com>
CC: cygwin AT cygwin DOT com
Subject: cygwin bash profile / Windows ME

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

# Define default printer
case "`uname -s`" in
CYGWIN_NT-*)
	PRINTER="`regtool -q get '\user\Software\Microsoft\Windows
NT\CurrentVersion\Windows\Device' | sed 's/,.*$//'`"
	;;
CYGWIN_9?-*)
	PRINTER="`regtool -q get
'\config\System\CurrentControlSet\Control\Print\Printers\Default'`"
	;;
esac


so, I suggest a new case entry:
CYGWIN_ME-*)
	PRINTER="`regtool -q get
'\config\System\CurrentControlSet\Control\Print\Printers\Default'`"
	;;

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 hope to had been helpfull.
(I'm sorry if there are english error, I don't have many occasion to use
this language.)

-- 
Sandro Bonazzola
pServ cygwin port maintainer
http://pserv.sourceforge.net




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