On Thu, Mar 17, 2011 at 07:59:11PM +0100, Angelo Graziosi wrote: >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%%,*}
Or even, + ([[ -e "${p}" ]] && read -r PRINTER < "${p}") && PRINTER=${PRINTER%%,*} -- 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