public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Problems with the new base-files-4.0-5?
@ 2011-03-17 23:07 Angelo Graziosi
  2011-03-17 23:41 ` David Sastre
  2011-03-18  2:51 ` Cyrille Lefevre
  0 siblings, 2 replies; 22+ messages in thread
From: Angelo Graziosi @ 2011-03-17 23:07 UTC (permalink / raw)
  To: Cygwin

David Sastre wrote:
> Please test if
>
> [ -e "${p}" ] && read -r PRINTER < "${p}" && PRINTER=${PRINTER%%,*}

No, I think.

I get:

$ cat test_pr.sh
#!/bin/bash

p='/proc/registry/HKEY_CURRENT_USER/Software/Microsoft/Windows 
NT/CurrentVersion/Windows/Device'

[ -e "${p}" ] && read -r PRINTER < "${p}" && PRINTER=${PRINTER%%,*}

echo 'echo $PRINTER'
echo $PRINTER

$ ./test_pr.sh
echo $PRINTER
HP Deskjet 3740 Series,winspool,Ne03:
----------------------^^^^^^^^^^^^^^^
which is *wrong*. See ^^^^^^^^^^^^^^^ above!

With base-files-4.0-4 I get:

$ echo $PRINTER
HP Deskjet 3740 Series

which is right.

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

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Problems with the new base-files-4.0-5?
@ 2011-03-17 18:22 Angelo Graziosi
  2011-03-17 19:15 ` Angelo Graziosi
  0 siblings, 1 reply; 22+ messages in thread
From: Angelo Graziosi @ 2011-03-17 18:22 UTC (permalink / raw)
  To: Cygwin

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.

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

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

end of thread, other threads:[~2011-03-21 14:31 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-17 23:07 Problems with the new base-files-4.0-5? Angelo Graziosi
2011-03-17 23:41 ` David Sastre
2011-03-17 23:46   ` Christopher Faylor
2011-03-18  2:51 ` Cyrille Lefevre
2011-03-18 14:17   ` David Sastre
2011-03-18 14:31     ` Andy Koppe
2011-03-18 16:28       ` David Sastre
2011-03-18 16:43         ` Andy Koppe
2011-03-18 18:02           ` David Sastre
2011-03-18 16:20     ` Nellis, Kenneth
2011-03-18 16:41       ` David Sastre
2011-03-20  9:19     ` IFS/read dash bug (was Re: Problems with the new base-files-4.0-5?) Cyrille Lefevre
2011-03-20 19:14       ` Cyrille Lefevre
2011-03-21 14:34         ` Eric Blake
  -- strict thread matches above, loose matches on Subject: below --
2011-03-17 18:22 Problems with the new base-files-4.0-5? Angelo Graziosi
2011-03-17 19:15 ` Angelo Graziosi
2011-03-17 19:16   ` Christopher Faylor
2011-03-17 19:39   ` Eric Blake
2011-03-17 19:40     ` Charles Wilson
2011-03-17 22:07     ` Nellis, Kenneth
2011-03-17 22:11       ` David Sastre
2011-03-18 12:45         ` Nellis, Kenneth

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