In Mac 10.8.2, use gfortran 4.7.2 to compile the following code:
program test
write(*, *) isatty(6)
end program test
The program just not response and not return. Any idea?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not really sure why you get no output, it works fine for me with gfortran 4.7.2 on Linux. You could try whether writing your own interface to C’s
isattymakes any difference:I get the following output: