aboutsummaryrefslogtreecommitdiff
path: root/tests/test-system-lib-file-from-context.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-10 14:13:56 -0500
committerCraig Jennings <c@cjennings.net>2026-05-10 14:13:56 -0500
commite4319b4e74278e054b7946ba4381cbdbc14ca9a6 (patch)
tree638eabb63cb196d1d2591e300cb231121b1c86a9 /tests/test-system-lib-file-from-context.el
parentc66ae2b769e9f9c6457b2a83261e32a243384765 (diff)
downloaddotemacs-e4319b4e74278e054b7946ba4381cbdbc14ca9a6.tar.gz
dotemacs-e4319b4e74278e054b7946ba4381cbdbc14ca9a6.zip
refactor(system-lib): extract cj/shell-quote-argument-readable from dev-fkeys
Phase 2.2 of utility-consolidation. The "quote only when shell-unsafe characters appear, otherwise leave the argument readable" pattern was trapped in dev-fkeys as `cj/--f6-shell-quote-argument' alongside its `cj/--f6-shell-safe-argument-regexp' constant. Lift both into system-lib.el under their generic names; the F6 branding hid that the same shape is useful for any generated compile/test command where the surrounding line ends up in a *compilation* buffer the user reads. Six Normal/Boundary tests cover safe inputs that pass through unchanged (alphanumeric paths, test regexes, `FLAG=value', `host:port'), unsafe inputs that get quoted (spaces, `$', `;', `&', backticks, `*'), and the empty-string boundary. Migrate dev-fkeys's five callers to the new name and add `(require \='system-lib)' per the Phase 2 exit criterion.
Diffstat (limited to 'tests/test-system-lib-file-from-context.el')
0 files changed, 0 insertions, 0 deletions