W
Water Lin
I use MSYS to use Strawberry Perl under Windows XP. But I found an
interesting thing under MSYS.
For there is a script test.pl, the content is:
-------------------------------------------------------------
print "The steps you can do by this auto-tool:\n";
$want_test = <STDIN>;
-------------------------------------------------------------
If I run this script in Windows cmd or Cygwin, it will print the text
"The steps you can do by this auto-tool:".
But when I try to run this script under MSYS, the console show
something like this:
-------------------------------------------------------------
$ perl test.pl
a
The steps you can do by this auto-tool:
-------------------------------------------------------------
After run comand "perl test.pl", the console ask me to input
immediately. After I input "a", the text is printed.
It is very strange. The script did right things but just asked me to
input something first!
Who has any idea about this?
interesting thing under MSYS.
For there is a script test.pl, the content is:
-------------------------------------------------------------
print "The steps you can do by this auto-tool:\n";
$want_test = <STDIN>;
-------------------------------------------------------------
If I run this script in Windows cmd or Cygwin, it will print the text
"The steps you can do by this auto-tool:".
But when I try to run this script under MSYS, the console show
something like this:
-------------------------------------------------------------
$ perl test.pl
a
The steps you can do by this auto-tool:
-------------------------------------------------------------
After run comand "perl test.pl", the console ask me to input
immediately. After I input "a", the text is printed.
It is very strange. The script did right things but just asked me to
input something first!
Who has any idea about this?