Open bartoszek opened 4 years ago
This appears to have to do with the way we're parsing the redirection, you can see the difference between
*ShellCheck.Parser> debugParseScript "mapfile -t files < <(cat)"
and
*ShellCheck.Parser> debugParseScript "mapfile -t files <(cat)"
Both < <(cat)
and <<< "string'
are behave as you'd expect. I'll keep looking to see if I can find where the issue is exactly.
In the mean time, < <(cat)
is equivalent and doesn't have this problem.
mapfile
inside a function not working as expected. Output variable is reported as unasigned. Reference #350Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says: