From 92e631c1565bd3e2fcc404f32ae20c073214de78 Mon Sep 17 00:00:00 2001 From: Renaud Guillard Date: Mon, 18 Mar 2024 10:18:39 +0100 Subject: [PATCH] new-xsh - fix unexpected semi-colon in subcommand-names option code chunk --- ns/sh/new-xsh.sh | 4 ++-- ns/xsh/apps/new-xsh.body.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ns/sh/new-xsh.sh b/ns/sh/new-xsh.sh index 68f6c52..6eb9f6f 100755 --- a/ns/sh/new-xsh.sh +++ b/ns/sh/new-xsh.sh @@ -1277,7 +1277,7 @@ fi if ns_array_contains 'subcommand-names' "${programContentOptions[@]}" then cat >> "${shFile}" << EOF - \${displaySubcommandNames}; \\ + \${displaySubcommandNames} \\ && for n in "\${parser_subcomomand_names[@]}"; do echo "\${n}"; done \\ && exit 0 EOF @@ -1303,7 +1303,7 @@ fi if ns_array_contains 'subcommand-names' "${programContentOptions[@]}" then cat >> "${shFile}" << EOF -\${displaySubcommandNames}; \\ +\${displaySubcommandNames} \\ && for n in "\${parser_subcomomand_names[@]}"; do echo "\${n}"; done \\ && exit 0 EOF diff --git a/ns/xsh/apps/new-xsh.body.sh b/ns/xsh/apps/new-xsh.body.sh index 6c0a4e7..b5cefb2 100755 --- a/ns/xsh/apps/new-xsh.body.sh +++ b/ns/xsh/apps/new-xsh.body.sh @@ -200,7 +200,7 @@ fi if ns_array_contains 'subcommand-names' "${programContentOptions[@]}" then cat >> "${shFile}" << EOF - \${displaySubcommandNames}; \\ + \${displaySubcommandNames} \\ && for n in "\${parser_subcomomand_names[@]}"; do echo "\${n}"; done \\ && exit 0 EOF @@ -226,7 +226,7 @@ fi if ns_array_contains 'subcommand-names' "${programContentOptions[@]}" then cat >> "${shFile}" << EOF -\${displaySubcommandNames}; \\ +\${displaySubcommandNames} \\ && for n in "\${parser_subcomomand_names[@]}"; do echo "\${n}"; done \\ && exit 0 EOF