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

Request: Validate toolchain #3116

Open
2 tasks done
vanyauhalin opened this issue Jan 8, 2025 · 1 comment
Open
2 tasks done

Request: Validate toolchain #3116

vanyauhalin opened this issue Jan 8, 2025 · 1 comment

Comments

@vanyauhalin
Copy link

Hello Vidar! I have a request. Will SpellCheck be able to check not only script syntax in the future but also the commands used in the script? My problem is that I like to use long flags in my scripts, but when I need to write something for BusyBox, I often forget that it does not support them in common. It would be great if this could be tracked in advance. Thanks!

For new checks and feature suggestions

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

#!/bin/busybox sh

echo "a b" | cut --delimiter " " --fields 2 # GNU cut
echo "a b" | cut -d" " -f2                  # BusyBox cut

Here's what shellcheck currently says:

nothing

Here's what I wanted or expected to see:

BusyBox cut command does not support --delimiter option, replace it with -d.
BusyBox cut command does not support --fields option, replace it with -f.
@Ordoviz
Copy link

Ordoviz commented Jan 13, 2025

Related: #2758 and #2902

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

2 participants