cygwin bash profile / Windows ME

Sandro Bonazzola sandrobonazzola@users.sourceforge.net
Sun Feb 22 17:47:00 GMT 2004


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/



More information about the Cygwin mailing list