shell/interactive

This commit is contained in:
Marc Beninca 2024-11-29 18:48:21 +01:00
parent 32b5389786
commit f1192c0c58
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -32,7 +32,7 @@ _sh_ifs_pop() {
}
_rwx_main_log() {
if sh_shell_interactive; then
if rwx_shell_interactive; then
[ ${#} -gt 0 ] || set -- ""
local line
for line in "${@}"; do
@ -84,7 +84,7 @@ rwx_help() {
}
# test if active shell is in interactive mode
sh_shell_interactive() {
rwx_shell_interactive() {
case "${-}" in
*i*) ;;
*) return 1 ;;
@ -131,7 +131,7 @@ rwx_main() {
# user root
rwx_main_source "${SH_USER}"
# run interactive extras
if sh_shell_interactive; then
if rwx_shell_interactive; then
# check format
sh_log
rwx_shfmt_check "${SH_ROOT}"