This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Problems with the new base-files-4.0-5?
- From: Cyrille Lefevre <cyrille dot lefevre-lists at laposte dot net>
- To: cygwin at cygwin dot com
- Date: Fri, 18 Mar 2011 00:46:26 +0100
- Subject: Re: Problems with the new base-files-4.0-5?
- References: <4D828E8E.6020607@alice.it>
Le 17/03/2011 23:43, Angelo Graziosi a Ãcrit :
p='/proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows
NT/CurrentVersion/Windows/Device'
[ -e "${p}" ] && read -r PRINTER < "${p}" && PRINTER=${PRINTER%%,*}
read -r "$p" returns 1 bcoz "The return code is zero, unless end-of-file
is encountered"...
alternative :
[ -e "${p}" ] && IFS=',' read -r PRINTER dummy < "${p}"
Regards,
Cyrille Lefevre
--
mailto:Cyrille.Lefevre-lists@laposte.net
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple