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 Message-ID: <40388CA8.6000304@users.sourceforge.net> Date: Sun, 22 Feb 2004 12:04:08 +0100 From: Sandro Bonazzola 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 CC: cygwin AT cygwin DOT com Subject: cygwin bash profile / Windows ME Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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/