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
$ docker run --rm -it busybox sh -c 'read -r -t 1 -n 1 keypress && printf "\nKeypress: %s\n" "$keypress"'sKeypress: s
$ echo$?0
$ docker run --rm -it busybox sh -c 'read -r -t 1 -n 1 keypress && printf "\nKeypress: %s\n" "$keypress"'
$ echo$?1
The text was updated successfully, but these errors were encountered:
felipecrs
changed the title
SC3045 false positive: In dash, read -t is not supported
SC3045 false positive on ash (In dash, read -t is not supported)
Dec 11, 2024
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:
read -t
is supported by both ASH and Busybox, I can confirm with:The text was updated successfully, but these errors were encountered: