when I run it in the terminal (bash)
echo -e ."\c"
prints out . and suppresses the newline.
When I run the following script (all the code)
echo -e ."\c"
echo -e ."\c"
it prints out .. and suppresses the newlines.
when I run it inside a script with the shebang (!#/bin/sh), it prints out -e . -e . and suppresses the newline.
Why? and how can I prevent this?
EDIT:
I want to prevent the -e's from printing out, so my output should be . .
change your script shebang to #!/bin/bash instead of #!/bin/sh and see if it works
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With