improve short description

* The short description used to say that until commit
  aac7d76047 from 2014. It appears that
  it was changed by mistake in that commit to something less readable.

* With the message "use -print0/-0" we were confused and introduced a
  bug in our code because we didn't understand what to do with the
  "-0".

* SC2011 (source
  c9e27c2470/src/ShellCheck/Analytics.hs (L591))
  uses that exact warning message, we copied it from there.

Signed-off-by: Bruce Ricard <bricard@vmware.com>
This commit is contained in:
Danny Faught 2023-07-28 14:19:54 -04:00 committed by Bruce Ricard
parent c9e27c2470
commit 01aee1a859
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ checkPipePitfalls _ (T_Pipeline id _ commands) = do
hasParameter "print0",
hasParameter "printf"
]) $ warn (getId find) 2038
"Use -print0/-0 or -exec + to allow for non-alphanumeric filenames."
"Use 'find .. -print0 | xargs -0 ..' or 'find .. -exec .. +' to allow non-alphanumeric filenames."
for ["ps", "grep"] $
\(ps:grep:_) ->