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
The code already appears to be expressed in the second form suggested: find .. -exec .. + - I suspect that the line-continuation characters are throwing off this check?
(Admittedly, any update to the invocation of the find command above to correctly handle less-usual filenames would then be broken again by the for-loop, but that's not what SC2038 is talking about - really, the advice should be to refactor the code to something along the lines of:
… which I think works? Either way, it begs the question of whether shellcheck could try to more explicitly identify cases of unsafe non-alphanumeric filename handling beyond cases of word-splitting currently reported - likely a whole can of worms 😯)
The text was updated successfully, but these errors were encountered:
Version:
v0.10.0-68-gd3001f3
Result from
shellcheck
:Code:
The code already appears to be expressed in the second form suggested:
find .. -exec .. +
- I suspect that the line-continuation characters are throwing off this check?(Admittedly, any update to the invocation of the
find
command above to correctly handle less-usual filenames would then be broken again by thefor
-loop, but that's not what SC2038 is talking about - really, the advice should be to refactor the code to something along the lines of:… which I think works? Either way, it begs the question of whether shellcheck could try to more explicitly identify cases of unsafe non-alphanumeric filename handling beyond cases of word-splitting currently reported - likely a whole can of worms 😯)
The text was updated successfully, but these errors were encountered: