[substitution] multiline value #2

Open
opened 2026-10-03 19:44:02 +00:00 by jaynuine · 0 comments
Owner

we are currently using an inline, inplace sed call to substitute variables one at a time across the whole file

because of the way the command is given as a single argument to sed containing both the match and replace patterns (and command and flags) in a quoted string, we must find a way to expand a variable's value so that it would escape any delimiter and newlines

or we just quit trying to use sed, or at least come up with a more elaborate sequence of command over a single s call

might even be faster

we are currently using an inline, inplace sed call to substitute variables one at a time across the whole file because of the way the command is given as a single argument to sed containing both the match and replace patterns (and command and flags) in a quoted string, we must find a way to expand a variable's value so that it would escape any delimiter and newlines or we just quit trying to use sed, or at least come up with a more elaborate sequence of command over a single `s` call might even be faster
jaynuine added this to the todo project 2026-10-03 19:44:02 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jaynuine/parsoeur#2
No description provided.