Pattern: Use of undefined echo flag
Issue: -
echo
has historically behaved differently on different systems. Use printf
instead to ensure compatibility between shells.
Example of incorrect code:
#!/bin/sh
echo -ne 'Foo:\tBar'
Example of correct code:
#!/bin/sh
printf 'Foo:\tBar'