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
Here's a snippet or screenshot that shows the problem:
#!/bin/shread -r -d ':' foo
Here's what shellcheck currently says:
Line 3 SC3045: In POSIX sh, read -d is undefined.
Here's what I wanted or expected to see:
I believe this is a false-positive, as the POSIX description for read shows that it does support -d. See the specification here and the relevant quote part below.
NAME
read — read from standard input into shell variables
If delim consists of one single-byte character, that byte shall be used as the logical line delimiter. If delim is the null string, the logical line delimiter shall be the null byte. Otherwise, the behavior is unspecified.
-r
Do not treat a character in any special way. Consider each to be part of the input line.
The support for -d in POSIX appears to be relatively recent though, as the previous edition do indeed omit it the option.
Perhaps I missed a way of specifying the POSIX version?
The text was updated successfully, but these errors were encountered:
For bugs
shellcheck --version
or 'online'): onlineFor new checks and feature suggestions
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:
I believe this is a false-positive, as the POSIX description for
read
shows that it does support-d
. See the specification here and the relevant quote part below.The support for
-d
in POSIX appears to be relatively recent though, as the previous edition do indeed omit it the option.Perhaps I missed a way of specifying the POSIX version?
The text was updated successfully, but these errors were encountered: