summaryrefslogtreecommitdiff
path: root/modules/prog-shell.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-23 20:01:25 -0500
committerCraig Jennings <c@cjennings.net>2026-05-23 20:01:25 -0500
commit0a7dbd667b2d37de99dda598094b187bfb86e054 (patch)
tree93b39ef468bb3d08d35bb5aa16ba03f58495ce87 /modules/prog-shell.el
parent2e4579175ba53a2d23b8c73446abd37ea25a548e (diff)
downloaddotemacs-0a7dbd667b2d37de99dda598094b187bfb86e054.tar.gz
dotemacs-0a7dbd667b2d37de99dda598094b187bfb86e054.zip
fix(dwim-shell): build video-concat filelist in elisp
cj/dwim-shell-commands-concatenate-videos built the ffmpeg concat list with echo '<<*>>' | tr ' ' '\n' | sed 's/^/file /'. That splits on spaces, so any video whose name contains a space produced a broken list, and a name with a quote broke the echo outright. I extracted cj/dwim-shell--build-concat-filelist, which renders each path as an escaped file '...' line. I write that list to a temp file and run ffmpeg against the quoted listfile, with a trailing rm to clean up after the process exits. The <<*>> token stays only as an inert shell comment, since dwim-shell needs it to run one command over all marked files instead of once per file.
Diffstat (limited to 'modules/prog-shell.el')
0 files changed, 0 insertions, 0 deletions