public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* /etc/profile in base-files 4.0-5
@ 2011-03-18 15:29 Marc Girod
  2011-03-18 15:59 ` David Sastre
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Girod @ 2011-03-18 15:29 UTC (permalink / raw)
  To: cygwin


Hi,

Just upgraded, and got a new glitch:

/etc/profile: line 39: ${p}: ambiguous redirect
It sounds ${p} should be quoted to take care of possible spaces in the path
to the Windows device:

# Define default printer
p='/proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows
NT/CurrentVersion/Windows/Device'
([[ -e "${p}" ]] && read -r PRINTER < "${p}") && PRINTER=${PRINTER%%,*}

Marc
-- 
View this message in context: http://old.nabble.com/-etc-profile-in-base-files-4.0-5-tp31182191p31182191.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: /etc/profile in base-files 4.0-5
  2011-03-18 15:29 /etc/profile in base-files 4.0-5 Marc Girod
@ 2011-03-18 15:59 ` David Sastre
  2011-03-19 21:09   ` Alex
  0 siblings, 1 reply; 3+ messages in thread
From: David Sastre @ 2011-03-18 15:59 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 421 bytes --]

On Fri, Mar 18, 2011 at 08:22:01AM -0700, Marc Girod wrote:
> /etc/profile: line 39: ${p}: ambiguous redirect
> It sounds ${p} should be quoted to take care of possible spaces in the path
> to the Windows device:

Thanks for reporting.
A fix is on its way. See 
http://cygwin.com/ml/cygwin/2011-03/msg00503.html
for reference.

-- 
Huella de clave primaria: 0FDA C36F F110 54F4 D42B  D0EB 617D 396C 448B 31EB

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: /etc/profile in base-files 4.0-5
  2011-03-18 15:59 ` David Sastre
@ 2011-03-19 21:09   ` Alex
  0 siblings, 0 replies; 3+ messages in thread
From: Alex @ 2011-03-19 21:09 UTC (permalink / raw)
  To: cygwin

Thanks for noting this. Such an easy fix! It was driving me crazy. I had
installed MikTex just before upgrading so was wasting my time thinking it had
stomped something. -- Alex



--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-19  6:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-18 15:29 /etc/profile in base-files 4.0-5 Marc Girod
2011-03-18 15:59 ` David Sastre
2011-03-19 21:09   ` Alex

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).