Details
Description
When using shell:exec, you don't see any output when the command you're executing is executing too fast.
karaf@root()> shell:exec ls bin data demos deploy etc instances lib LICENSE lock NOTICE README RELEASE-NOTES system karaf@root()> shell:exec ls karaf@root()>
For example, using shell:exec ls doesn't return anything, but shell:exec du / does.
Although, almost every time you first use shell:exec, you do get output on the console. If I add a Thread.sleep right before the p.waitFor in, it also consistently works.
The cause must be related to the PumpStreamHandler.