1.7.5: Bug with bash read in /etc/profile.d invocation
Garber, Dave (GE Infra, Energy, Non-GE)
dave.garber@ge.com
Tue May 18 20:30:00 GMT 2010
PING!
Anyone have any ideas on this? See lots of discussion on "Cygwin visual
brand" would be nice if there was some discussion of actual issues ;)
Thanks,
Dave
-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf
Of Garber, Dave (GE Infra, Energy, Non-GE)
Sent: Thursday, May 13, 2010 9:17 AM
To: cygwin@cygwin.com
Subject: 1.7.5: Bug with bash read in /etc/profile.d invocation
OK, I have this simple script:
#!/usr/bin/bash -x
echo In p.sh
read -p "How are you today? " Ans
echo Ans is $Ans
When I run from the bash prompt in Cygwin, I get:
$ /etc/profile.d/p.sh
+ echo In p.sh
In p.sh
+ read -p 'How are you today? ' Ans
How are you today? OK
+ echo Ans is OK
Ans is OK
However, when it gets invoked on startup, by being in /etc/profile.d, I
do not get prompted for input and it echoes the value of Ans is
/etc/profile.d/xinit.sh, here's the output I get:
In p.sh
Ans is /etc/profile.d/xinit.sh
So, it appears the stdin is being high jacked when login scripts are
running. Cygcheck output attached.
Thanks,
Dave
--
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
More information about the Cygwin
mailing list