Open dubo-dubon-duponey opened 9 months ago
I agree, IMO shellcheck should ignore this if any of the following are used - but especially the first
${parameter:-word}
${parameter:=word}
${parameter:?word}
${parameter:+word}
For bugs
shellcheck --version
or "online"): online and 0.9.0Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
Here's what I wanted or expected to see:
It should say nothing about SC2120. An argument is being passed (a file descriptor), so, this one feels factually wrong to me.SC2119, I am not quite sure what it would mean here, so, same thing, I would expect it to not say anything.
Apologies in advance if I am missing something here.
Thanks a lot!