From b1fc5bf235c94d531c922882f5c30995f0d0d1ab Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 9 Jul 2025 20:42:41 +0200 Subject: [PATCH] context/interactive --- sh/core/code.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sh/core/code.sh b/sh/core/code.sh index af9962f..f8748c0 100644 --- a/sh/core/code.sh +++ b/sh/core/code.sh @@ -263,17 +263,17 @@ EOF "bash" | "dash" | "sh") unset command ;; *) ;; esac + # context / shell + if rwx_shell_interactive; then + # display help + rwx_code_help # context / command - if [ -n "${command}" ]; then + else local function # find the matching function function="$(rwx_code_command_function "${command}")" if [ -n "${function}" ]; then "${function}" "${@}" fi - # context / shell - else - # display help - rwx_code_help fi }