On Fri, 9 Jul 2021 16:53:45 -0400 Greg Wooledge <g...@wooledge.org> wrote:
> Since it's a function, and not a script, there's no shebang. So I'm > guessing shellcheck assumed it was /bin/sh code, rather than bash > code. <<< is just one of the bashisms I used here. local is > another. The use of arrays is a third. The [[ command is a fourth. I had dropped the function into a script, and added code to use it, and a shebang. So shellcheck knew to allow bashisms. Why it didn't like that one I don't know. -- Does anybody read signatures any more? https://charlescurley.com https://charlescurley.com/blog/