filter out control characters and quote filenames
authorJoey Hess <joeyh@joeyh.name>
Tue, 11 Apr 2023 18:27:22 +0000 (14:27 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 11 Apr 2023 18:27:22 +0000 (14:27 -0400)
commitdf6f9f1ee84db38b590d65306bdaa4cd94ebd3d2
tree7925d28881cc437659ee0fd6aa9d3a381a461299
parent11e89c5a29cc2ded8f33027c634f5a6b2b3d07fd
filter out control characters and quote filenames

Searched for uses of putStr and hPutStr and changed appropriate ones to filter
out control characters and quote filenames.

This notably does not make find and findkeys quote filenames in their default
output. Because they should only do that when stdout is non a pipe.

A few commands like calckey and lookupkey seem too low-level to make sense to filter
output, so skipped those.

Also when relaying output from other commands that is not progress output,
have git-annex filter out control characters.

Sponsored-by: k0ld on Patreon
15 files changed:
CHANGELOG
Command/CheckPresentKey.hs
Command/Config.hs
Command/Group.hs
Command/List.hs
Command/Log.hs
Command/MetaData.hs
Command/P2P.hs
Command/Schedule.hs
Command/Status.hs
Command/Wanted.hs
Command/WhereUsed.hs
Command/Whereis.hs
Messages/Progress.hs
Utility/Metered.hs