You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hm, I haven't used busybox before, AFAIK, but here's how dash behaves in
Termux on Android:
~ $ bash --version
GNU bash, version 5.2.37(1)-release ...
~ $ dash
$ echo -e '\nfoo'
On Wed, Dec 11, 2024, 13:01 Felipe Santos ***@***.***> wrote:
For bugs
- Rule Id: SC3036
- My shellcheck version: 0.10.0
- The rule's wiki page does not already cover this (
https://shellcheck.net/wiki/SC3036)
- I tried on https://www.shellcheck.net/ and verified that this is
still a problem on the latest commit
Here's a snippet or screenshot that shows the problem:
# shellcheck shell=ash
echo -e "\nhi\nthere\nyou"
Here's what shellcheck currently says:
echo -e "\nhi\nthere\nyou"
^-- [SC3036](https://www.shellcheck.net/wiki/SC3036) (error): In dash, echo flags besides -n not supported.
Here's what I wanted or expected to see:
Nothing, as this is supported:
$ docker run --rm -it alpine ash -c 'echo -e "\nhi\nthere\nyou"'
hithereyou
$ docker run --rm -it busybox sh -c 'echo -e "\nhi\nthere\nyou"
hithereyou
—
Reply to this email directly, view it on GitHub
<#3100>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUF2F24EXQXJLFMJEFK2JIL2FCR3XAVCNFSM6AAAAABTOLFKRWVHI2DSMVQWIX3LMV43ASLTON2WKOZSG4ZTIMBRGA2DQMA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
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:
Nothing, as this is supported:
The text was updated successfully, but these errors were encountered: