From 4e79ac43fb41d0894b0c49985096cd77e1173188 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Tue, 29 Aug 2023 08:39:22 +0200 Subject: [PATCH] Example cli pipe grep command quotes vertical bar for OR function --- CHANGELOG.md | 1 + apps/cli/cli_pipe.c | 27 ++++++++++++++++++++++++--- test/test_cli_pipe.sh | 2 +- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fd3fb27..10f849c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,6 +51,7 @@ Developers may need to change their code ### Minor features +* Example cli pipe grep command quotes vertical bar for OR function * New command-line option for dumping configuration options for all clixon applications after load * Syntax is `-C ` * Example: `clixon_backend -1C json` diff --git a/apps/cli/cli_pipe.c b/apps/cli/cli_pipe.c index 4089daab..3cca01c8 100644 --- a/apps/cli/cli_pipe.c +++ b/apps/cli/cli_pipe.c @@ -31,8 +31,11 @@ ***** END LICENSE BLOCK ***** * + * Example cli pipe output functions. * @note Paths to bins, such as GREP_BIN, are detected in configure.ac * @note These functions are normally run in a forked sub-process as spawned in cligen_eval() + * A developer should probably revise these functions, since they are primarily intended for testing + * of the pipe functionality */ #ifdef HAVE_CONFIG_H @@ -123,6 +126,7 @@ pipe_arg_fn(clicon_handle h, * @param[in] h Clicon handle * @param[in] cvv Vector of cli string and instantiated variables * @param[in] argv String vector of options. Format: