Fix the repl when stdout is redirected.
Fix the repl when stdout is redirected.

The repl is sometimes failing to write anything to stdout when it is
being redirected to a file (as in test/Interpreter/repl.swift).  it
looks like an editline bug on 10.8.  explicitly fflushing stdout
seems to help.


Swift SVN r4669

dduan/swift,KrishMunot/swift,brentdax/swift,mightydeveloper/swift,karwa/swift,tinysun212/swift-windows,arvedviehweger/swift,parkera/swift,practicalswift/swift,therealbnut/swift,tinysun212/swift-windows,ken0nek/swift,calebd/swift,frootloops/swift,SwiftAndroid/swift,deyton/swift,gribozavr/swift,modocache/swift,amraboelela/swift,modocache/swift,practicalswift/swift,huonw/swift,harlanhaskins/swift,mightydeveloper/swift,kusl/swift,huonw/swift,felix91gr/swift,gregomni/swift,kusl/swift,austinzheng/swift,aschwaighofer/swift,shajrawi/swift,milseman/swift,ahoppen/swift,MukeshKumarS/Swift,ken0nek/swift,ben-ng/swift,tkremenek/swift,djwbrown/swift,shajrawi/swift,natecook1000/swift,xedin/swift,milseman/swift,natecook1000/swift,parkera/swift,JGiola/swift,jmgc/swift,mightydeveloper/swift,gmilos/swift,benlangmuir/swift,tkremenek/swift,xwu/swift,ben-ng/swift,jtbandes/swift,uasys/swift,Jnosh/swift,KrishMunot/swift,mightydeveloper/swift,alblue/swift,mightydeveloper/swift,jtbandes/swift,ken0nek/swift,shahmishal/swift,swiftix/swift.old,glessard/swift,brentdax/swift,sschiau/swift,xwu/swift,MukeshKumarS/Swift,gmilos/swift,apple/swift,brentdax/swift,brentdax/swift,danielmartin/swift,jopamer/swift,tardieu/swift,xedin/swift,airspeedswift/swift,devincoughlin/swift,uasys/swift,huonw/swift,KrishMunot/swift,jopamer/swift,felix91gr/swift,practicalswift/swift,gregomni/swift,deyton/swift,jmgc/swift,dduan/swift,KrishMunot/swift,codestergit/swift,kperryua/swift,natecook1000/swift,xwu/swift,felix91gr/swift,Ivacker/swift,danielmartin/swift,JaSpa/swift,gmilos/swift,emilstahl/swift,parkera/swift,frootloops/swift,cbrentharris/swift,hooman/swift,dduan/swift,kusl/swift,johnno1962d/swift,JaSpa/swift,calebd/swift,tinysun212/swift-windows,manavgabhawala/swift,alblue/swift,swiftix/swift,karwa/swift,arvedviehweger/swift,cbrentharris/swift,kstaring/swift,kusl/swift,kperryua/swift,jopamer/swift,swiftix/swift,glessard/swift,zisko/swift,apple/swift,JGiola/swift,tinysun212/swift-windows,jckarter/swift,khizkhiz/swift,OscarSwanros/swift,tardieu/swift,stephentyrone/swift,tinysun212/swift-windows,sdulal/swift,JGiola/swift,parkera/swift,karwa/swift,swiftix/swift.old,sdulal/swift,kentya6/swift,harlanhaskins/swift,felix91gr/swift,cbrentharris/swift,sschiau/swift,shahmishal/swift,brentdax/swift,tardieu/swift,shajrawi/swift,parkera/swift,OscarSwanros/swift,manavgabhawala/swift,dduan/swift,glessard/swift,modocache/swift,return/swift,huonw/swift,xedin/swift,jopamer/swift,ahoppen/swift,manavgabhawala/swift,therealbnut/swift,airspeedswift/swift,kstaring/swift,tkremenek/swift,jmgc/swift,milseman/swift,deyton/swift,Jnosh/swift,bitjammer/swift,devincoughlin/swift,Jnosh/swift,IngmarStein/swift,felix91gr/swift,adrfer/swift,shajrawi/swift,jopamer/swift,adrfer/swift,dduan/swift,calebd/swift,danielmartin/swift,harlanhaskins/swift,roambotics/swift,uasys/swift,shahmishal/swift,kentya6/swift,tardieu/swift,amraboelela/swift,natecook1000/swift,allevato/swift,khizkhiz/swift,emilstahl/swift,codestergit/swift,CodaFi/swift,manavgabhawala/swift,sschiau/swift,jckarter/swift,kusl/swift,jtbandes/swift,practicalswift/swift,return/swift,kusl/swift,rudkx/swift,tjw/swift,benlangmuir/swift,nathawes/swift,devincoughlin/swift,emilstahl/swift,therealbnut/swift,johnno1962d/swift,glessard/swift,mightydeveloper/swift,glessard/swift,rudkx/swift,lorentey/swift,gribozavr/swift,austinzheng/swift,tkremenek/swift,bitjammer/swift,harlanhaskins/swift,gottesmm/swift,danielmartin/swift,CodaFi/swift,codestergit/swift,LeoShimonaka/swift,zisko/swift,tjw/swift,roambotics/swift,danielmartin/swift,danielmartin/swift,SwiftAndroid/swift,benlangmuir/swift,hughbe/swift,calebd/swift,airspeedswift/swift,rudkx/swift,harlanhaskins/swift,atrick/swift,jopamer/swift,KrishMunot/swift,jmgc/swift,tjw/swift,LeoShimonaka/swift,allevato/swift,JaSpa/swift,arvedviehweger/swift,allevato/swift,nathawes/swift,uasys/swift,ken0nek/swift,sschiau/swift,xedin/swift,MukeshKumarS/Swift,gottesmm/swift,bitjammer/swift,deyton/swift,roambotics/swift,dreamsxin/swift,ben-ng/swift,stephentyrone/swift,karwa/swift,austinzheng/swift,CodaFi/swift,austinzheng/swift,johnno1962d/swift,djwbrown/swift,hooman/swift,jtbandes/swift,sdulal/swift,ken0nek/swift,calebd/swift,allevato/swift,tjw/swift,gmilos/swift,adrfer/swift,cbrentharris/swift,djwbrown/swift,jmgc/swift,hooman/swift,ahoppen/swift,arvedviehweger/swift,aschwaighofer/swift,ahoppen/swift,xwu/swift,nathawes/swift,return/swift,codestergit/swift,russbishop/swift,IngmarStein/swift,kusl/swift,IngmarStein/swift,JaSpa/swift,allevato/swift,huonw/swift,calebd/swift,lorentey/swift,russbishop/swift,atrick/swift,Ivacker/swift,nathawes/swift,sschiau/swift,Ivacker/swift,djwbrown/swift,JaSpa/swift,dreamsxin/swift,tardieu/swift,hooman/swift,jckarter/swift,zisko/swift,shahmishal/swift,ben-ng/swift,hughbe/swift,LeoShimonaka/swift,gribozavr/swift,slavapestov/swift,ken0nek/swift,benlangmuir/swift,lorentey/swift,emilstahl/swift,huonw/swift,nathawes/swift,rudkx/swift,deyton/swift,austinzheng/swift,kperryua/swift,SwiftAndroid/swift,kperryua/swift,kstaring/swift,rudkx/swift,kentya6/swift,OscarSwanros/swift,lorentey/swift,austinzheng/swift,adrfer/swift,modocache/swift,return/swift,MukeshKumarS/Swift,practicalswift/swift,KrishMunot/swift,tardieu/swift,bitjammer/swift,alblue/swift,airspeedswift/swift,frootloops/swift,brentdax/swift,shahmishal/swift,roambotics/swift,shajrawi/swift,JaSpa/swift,mightydeveloper/swift,milseman/swift,Jnosh/swift,gmilos/swift,alblue/swift,amraboelela/swift,kentya6/swift,sdulal/swift,swiftix/swift,sdulal/swift,karwa/swift,ben-ng/swift,deyton/swift,slavapestov/swift,gregomni/swift,SwiftAndroid/swift,gribozavr/swift,russbishop/swift,dduan/swift,ben-ng/swift,jmgc/swift,alblue/swift,ahoppen/swift,tkremenek/swift,swiftix/swift.old,gottesmm/swift,devincoughlin/swift,russbishop/swift,LeoShimonaka/swift,jtbandes/swift,gregomni/swift,stephentyrone/swift,airspeedswift/swift,djwbrown/swift,emilstahl/swift,roambotics/swift,lorentey/swift,emilstahl/swift,nathawes/swift,LeoShimonaka/swift,kperryua/swift,kstaring/swift,JGiola/swift,deyton/swift,xwu/swift,kstaring/swift,milseman/swift,SwiftAndroid/swift,ken0nek/swift,mightydeveloper/swift,lorentey/swift,johnno1962d/swift,Jnosh/swift,therealbnut/swift,aschwaighofer/swift,devincoughlin/swift,gribozavr/swift,kperryua/swift,allevato/swift,frootloops/swift,JGiola/swift,cbrentharris/swift,danielmartin/swift,xedin/swift,jmgc/swift,slavapestov/swift,stephentyrone/swift,therealbnut/swift,slavapestov/swift,KrishMunot/swift,natecook1000/swift,gribozavr/swift,rudkx/swift,gmilos/swift,swiftix/swift,jtbandes/swift,huonw/swift,karwa/swift,djwbrown/swift,natecook1000/swift,ahoppen/swift,atrick/swift,frootloops/swift,gribozavr/swift,modocache/swift,parkera/swift,LeoShimonaka/swift,parkera/swift,uasys/swift,kentya6/swift,cbrentharris/swift,gmilos/swift,SwiftAndroid/swift,apple/swift,zisko/swift,airspeedswift/swift,slavapestov/swift,swiftix/swift.old,russbishop/swift,CodaFi/swift,slavapestov/swift,stephentyrone/swift,devincoughlin/swift,return/swift,hughbe/swift,JGiola/swift,zisko/swift,practicalswift/swift,kusl/swift,swiftix/swift,brentdax/swift,bitjammer/swift,OscarSwanros/swift,tardieu/swift,gottesmm/swift,tinysun212/swift-windows,glessard/swift,practicalswift/swift,khizkhiz/swift,allevato/swift,tjw/swift,parkera/swift,therealbnut/swift,codestergit/swift,zisko/swift,stephentyrone/swift,therealbnut/swift,felix91gr/swift,nathawes/swift,Ivacker/swift,LeoShimonaka/swift,adrfer/swift,CodaFi/swift,sdulal/swift,sdulal/swift,hughbe/swift,swiftix/swift.old,swiftix/swift.old,IngmarStein/swift,gottesmm/swift,aschwaighofer/swift,austinzheng/swift,manavgabhawala/swift,JaSpa/swift,adrfer/swift,amraboelela/swift,tkremenek/swift,swiftix/swift,kentya6/swift,emilstahl/swift,practicalswift/swift,slavapestov/swift,frootloops/swift,xedin/swift,atrick/swift,khizkhiz/swift,OscarSwanros/swift,bitjammer/swift,apple/swift,sschiau/swift,sschiau/swift,devincoughlin/swift,tkremenek/swift,calebd/swift,IngmarStein/swift,hooman/swift,Ivacker/swift,emilstahl/swift,Ivacker/swift,russbishop/swift,shajrawi/swift,kentya6/swift,gribozavr/swift,shajrawi/swift,arvedviehweger/swift,LeoShimonaka/swift,CodaFi/swift,airspeedswift/swift,arvedviehweger/swift,johnno1962d/swift,gottesmm/swift,lorentey/swift,benlangmuir/swift,jtbandes/swift,shajrawi/swift,Ivacker/swift,codestergit/swift,uasys/swift,kentya6/swift,hooman/swift,modocache/swift,alblue/swift,dduan/swift,codestergit/swift,IngmarStein/swift,manavgabhawala/swift,OscarSwanros/swift,karwa/swift,swiftix/swift,swiftix/swift.old,aschwaighofer/swift,MukeshKumarS/Swift,xwu/swift,gregomni/swift,johnno1962d/swift,amraboelela/swift,bitjammer/swift,atrick/swift,uasys/swift,khizkhiz/swift,khizkhiz/swift,modocache/swift,aschwaighofer/swift,arvedviehweger/swift,xedin/swift,jckarter/swift,milseman/swift,jckarter/swift,return/swift,xwu/swift,tjw/swift,cbrentharris/swift,shahmishal/swift,apple/swift,hughbe/swift,felix91gr/swift,OscarSwanros/swift,karwa/swift,atrick/swift,natecook1000/swift,benlangmuir/swift,lorentey/swift,harlanhaskins/swift,gottesmm/swift,Jnosh/swift,cbrentharris/swift,roambotics/swift,return/swift,johnno1962d/swift,milseman/swift,ben-ng/swift,MukeshKumarS/Swift,jckarter/swift,tjw/swift,Jnosh/swift,xedin/swift,sdulal/swift,shahmishal/swift,Ivacker/swift,amraboelela/swift,jopamer/swift,apple/swift,CodaFi/swift,khizkhiz/swift,stephentyrone/swift,harlanhaskins/swift,gregomni/swift,adrfer/swift,SwiftAndroid/swift,kperryua/swift,manavgabhawala/swift,swiftix/swift.old,djwbrown/swift,zisko/swift,tinysun212/swift-windows,jckarter/swift,sschiau/swift,IngmarStein/swift,amraboelela/swift,kstaring/swift,MukeshKumarS/Swift,shahmishal/swift,alblue/swift,aschwaighofer/swift,hughbe/swift,devincoughlin/swift,russbishop/swift,kstaring/swift,frootloops/swift,hughbe/swift,hooman/swift