Skip to content

CFE-4694: String replace lists#6219

Open
victormlg wants to merge 2 commits into
cfengine:masterfrom
victormlg:string_replace_lists
Open

CFE-4694: String replace lists#6219
victormlg wants to merge 2 commits into
cfengine:masterfrom
victormlg:string_replace_lists

Conversation

@victormlg

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
Comment thread libpromises/evalfunction.c Fixed
/*********************************************************************/

static FnCallResult FnCallStringReplace(ARG_UNUSED EvalContext *ctx,
static FnCallResult FnCallStringReplace(EvalContext *ctx,
@victormlg victormlg force-pushed the string_replace_lists branch 4 times, most recently from 619dcd3 to 0c2db2e Compare July 7, 2026 14:30
Comment thread libpromises/evalfunction.c Outdated
Comment thread tests/acceptance/01_vars/02_functions/string_replace.cf
@victormlg victormlg force-pushed the string_replace_lists branch 5 times, most recently from b28a4eb to 26290ef Compare July 10, 2026 13:33
@olehermanse olehermanse requested a review from larsewi July 13, 2026 11:45
@olehermanse

Copy link
Copy Markdown
Member

@cf-bottom jenkins, please

@cf-bottom

Copy link
Copy Markdown

@larsewi larsewi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider refactoring "string" and "list" paths into two separate static functions to make it more readable. Furthermore, I would avoid goto's unless it saves you a lot of code.

Comment thread libpromises/evalfunction.c Outdated
Comment thread libpromises/evalfunction.c Outdated
Comment thread libpromises/evalfunction.c Outdated
Comment thread libpromises/evalfunction.c Outdated
Comment thread libpromises/evalfunction.c Outdated
Comment thread libpromises/evalfunction.c Outdated
Comment thread libpromises/evalfunction.c Outdated
Changelog: Title
Ticket: CFE-4694
Signed-off-by: Victor Moene <victor.moene@northern.tech>
Signed-off-by: Victor Moene <victor.moene@northern.tech>
@victormlg victormlg force-pushed the string_replace_lists branch from 26290ef to d83ff55 Compare July 14, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants