compute: add response to OUTPUT

This allows rejecting output filenames that are outside the repository,
and also handles converting eg "-foo" to "./-foo" to prevent a command
that it's passed to interpreting the output filename as a dashed option.
This commit is contained in:
Joey Hess 2025-03-07 14:47:34 -04:00
parent 6a8e57f0e9
commit 81ce4264df
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 19 additions and 12 deletions

View file

@ -10,6 +10,7 @@
module Utility.SafeCommand (
CommandParam(..),
toCommand,
toCommand',
boolSystem,
boolSystem',
boolSystemEnv,