I ran my script using three ways and the output was different, could you explain to me why it works like that? Thanks!! Here is my script
#!/bin/bash
#Program:
# This program shows "Hello World!" in your screen.
echo -e "Hello World! \a\n"
exit 0
And if i run it by bash and ./ like bash sh01.sh the output is
Hello World!
However, if i use sh like sh sh01.sh it would be like
-e Hello World!
And Here is some other information
- OS: Ubuntu 16.04.3
- type sh -> dash