diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-10 14:13:56 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-10 14:13:56 -0500 |
| commit | 45cbe3350dc12ce017c8396a8c1590708f676913 (patch) | |
| tree | 4adde01d83f0287228cee5b80ccee8f1ec8f5972 /modules/selection-framework.el | |
| parent | d9d7c7b03e1382834e23a8fa39824e1f076f8b04 (diff) | |
| download | dotemacs-45cbe3350dc12ce017c8396a8c1590708f676913.tar.gz dotemacs-45cbe3350dc12ce017c8396a8c1590708f676913.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 'modules/selection-framework.el')
0 files changed, 0 insertions, 0 deletions
