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/bashinstead of#!/bin/shand see if it works