IO redirection not working
I am using bash as my shell.
I am compiling some java files and I will like to redirect the compile errors that I get to some text file.
So I issue the following command
javac myjavafile.java > debug
Nothing is written in the debug file and all the errors are displayed on the screen.
I did check the permission on the file debug to make sure I have the correct permission
I also try to pipe the output to more
javac myjavafile.java | more
again, everything is written to the screen and I cannot scroll up and down with more.
Does anyone have any idea of what is going wrong here ?