Open ribx opened 5 years ago
#!/bin/sh /bin/echo -e "test\ntest"
Line 2: /bin/echo -e "test\ntest" ^-- SC2039: In POSIX sh, echo flags are undefined.
When I use /bin/echo it should not complain about "echo in POSIX sh", as I am using the binary and not the shell internal function.
/bin/echo
@ribx maybe it is better to switch to printf for good? /bin/echo own help recommends it.
printf
$ /bin/echo --help ... NOTE: printf(1) is a preferred alternative, which does not have issues outputting option-like strings.
For bugs
Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
Here's what I wanted or expected to see:
When I use
/bin/echo
it should not complain about "echo in POSIX sh", as I am using the binary and not the shell internal function.