X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SARE_FREE_WEBM_LAPOSTE,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <4D829D52.3040706@laposte.net> Date: Fri, 18 Mar 2011 00:46:26 +0100 From: Cyrille Lefevre User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Problems with the new base-files-4.0-5? References: <4D828E8E DOT 6020607 AT alice DOT it> In-Reply-To: <4D828E8E.6020607@alice.it> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-me-spamlevel: not-spam X-me-spamrating: 40.000000 X-me-spamcause: OK, (0)(0000)gggruggvucftvghtrhhoucdtuddrfeduhedruddtucetggdotefuucfrrhhofhhilhgvmecuoehnohhnvgeqnecuuegrihhlohhuthemuceftddtnecu X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Le 17/03/2011 23:43, Angelo Graziosi a =C3=A9crit : > p=3D'/proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows > NT/CurrentVersion/Windows/Device' > > [ -e "${p}" ] && read -r PRINTER < "${p}" && PRINTER=3D${PRINTER%%,*} read -r "$p" returns 1 bcoz "The return code is zero, unless end-of-file=20 is encountered"... alternative : [ -e "${p}" ] && IFS=3D',' read -r PRINTER dummy < "${p}" Regards, Cyrille Lefevre --=20 mailto:Cyrille DOT Lefevre-lists AT laposte DOT 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