-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Description
For bugs with existing features
- Rule Id (if any, e.g. SC1000): SC3028
- My shellcheck version (
shellcheck --version
or "online"): 0.11.0 - The rule's wiki page does not already cover this (e.g. https://shellcheck.net/wiki/SC2086)
- 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=busybox
echo "$RANDOM"
Here's what shellcheck currently says:
[Line 2:](javascript:setPosition(2, 7))
echo "$RANDOM"
^-- [SC3028](https://www.shellcheck.net/wiki/SC3028) (error): In dash, RANDOM is not supported.
Here's what I wanted or expected to see:
No error. Busybox ash
supports RANDOM, example output:
# echo $RANDOM
14948
# echo $RANDOM
11702
The mention of "dash" in the output indicates the shell type isn't handled correctly.
Metadata
Metadata
Assignees
Labels
No labels