X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4D8259FF.4020802@alice.it> Date: Thu, 17 Mar 2011 19:59:11 +0100 From: Angelo Graziosi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Cygwin Subject: Re: Problems with the new base-files-4.0-5? References: <4D824C56 DOT 9030905 AT alice DOT it> In-Reply-To: <4D824C56.9030905@alice.it> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 Il 17/03/2011 19.00, Angelo Graziosi ha scritto: > I have just updated Cygwin, and now starting a console (Cygwin.bat or > MinTTY) prints: > > -bash: ${p}: ambiguous redirect > > and PRINTER variable isn't set. > > Reverting to base-files-4.0-4 works just fine and PRINTER is set > correctly to my default printer. > > In 4.0-5 it seems something is broken in /etc/profile. Perhaps you need this: - ([[ -e ${p} ]] && read -r PRINTER < ${p}) && PRINTER=${PRINTER%%,*} + ([[ -e ${p} ]] && read -r PRINTER < "${p}") && PRINTER=${PRINTER%%,*} > Ciao, > Angelo. -- 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