Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SC2039 "In POSIX sh, echo flags are undefined." triggered for /bin/echo #1593

Open
2 tasks done
ribx opened this issue May 28, 2019 · 0 comments
Open
2 tasks done

SC2039 "In POSIX sh, echo flags are undefined." triggered for /bin/echo #1593

ribx opened this issue May 28, 2019 · 0 comments

Comments

@ribx
Copy link

ribx commented May 28, 2019

For bugs

  • Rule Id: SC2039
  • My shellcheck version: integrated in hadolint 1.16.3
  • The rule's wiki page does not already cover this (e.g. https://shellcheck.net/wiki/SC2086)
  • I tried on shellcheck.net and verified that this is still a problem on the latest commit

Here's a snippet or screenshot that shows the problem:

#!/bin/sh
/bin/echo -e "test\ntest"

Here's what shellcheck currently says:

Line 2:
/bin/echo -e "test\ntest"
          ^-- SC2039: In POSIX sh, echo flags are undefined.

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.

@ribx ribx changed the title SC2039: triggers "In POSIX sh, echo flags are undefined." for /bin/echo SC2039 triggered "In POSIX sh, echo flags are undefined." for /bin/echo May 28, 2019
@ribx ribx changed the title SC2039 triggered "In POSIX sh, echo flags are undefined." for /bin/echo SC2039 "In POSIX sh, echo flags are undefined." triggered for /bin/echo May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant