If we have redirect input when we start æsh like: java AeshExample << EOF ls foo EOF
we cant use InputStream.available() since it wont detect the end of the stream. we also need to verify using redirect like: java AeshExample < textfile