This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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
Attachment:
cygcheck.out
Description: cygcheck.out
-- 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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |