X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_40,TW_YG X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: 1.7.5: Bug with bash read in /etc/profile.d invocation Date: Tue, 18 May 2010 15:31:37 -0400 Message-ID: In-Reply-To: References: From: "Garber, Dave (GE Infra, Energy, Non-GE)" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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 AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Garber, Dave (GE Infra, Energy, Non-GE) Sent: Thursday, May 13, 2010 9:17 AM To: cygwin AT cygwin DOT 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 =20 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 =20 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: =20 In p.sh Ans is /etc/profile.d/xinit.sh =20 So, it appears the stdin is being high jacked when login scripts are running. Cygcheck output attached. Thanks, Dave=20 -- 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