Wouldn't we be better off without the "harmless commands" list in check-extra-masked-returns, and give people who want to enable the optional check what they ask for, all the way? I was surprised to find dirname didn't trigger this warning in my script while other commands did.
All the commands in the current list can fail due to a number of reasons, including but not limited to usage errors (different options accepted between shells and OS's), and all of them cannot be even guaranteed to be always available (shopt being the most likely suspect in the current list).
I think these kinds of errors are in the same category that lead to rejection of the cat <<EOF addition to the list in #2359 (comment)
Wouldn't we be better off without the "harmless commands" list in
check-extra-masked-returns, and give people who want to enable the optional check what they ask for, all the way? I was surprised to finddirnamedidn't trigger this warning in my script while other commands did.All the commands in the current list can fail due to a number of reasons, including but not limited to usage errors (different options accepted between shells and OS's), and all of them cannot be even guaranteed to be always available (
shoptbeing the most likely suspect in the current list).I think these kinds of errors are in the same category that lead to rejection of the
cat <<EOFaddition to the list in #2359 (comment)