delorie.com/archives/browse.cgi | search |
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 |
MIME-Version: | 1.0 |
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: | <A4AC3816FD34354F878DD1F440F3ABCE02398530@CINMLVEM24.e2k.ad.ge.com> |
In-Reply-To: | <A4AC3816FD34354F878DD1F440F3ABCE02284615@CINMLVEM24.e2k.ad.ge.com> |
References: | <A4AC3816FD34354F878DD1F440F3ABCE02284615 AT CINMLVEM24 DOT e2k DOT ad DOT ge DOT com> |
From: | "Garber, Dave (GE Infra, Energy, Non-GE)" <dave DOT garber AT ge DOT com> |
To: | <cygwin AT cygwin DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |