From d2d15644ac9e233116e4e2ed6b52766f9ca62675 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sun, 17 Nov 2024 23:29:59 -0500 Subject: [PATCH] minor fix and improvement --- brc | 4 +++- brc2 | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/brc b/brc index 5dda2e0..f8691ed 100644 --- a/brc +++ b/brc @@ -3470,8 +3470,10 @@ nonet() { } # echo args then run m() { printf "%s\n" "$*"; "$@"; } -# echo args then run and send output to stderr +# echo args to stderr, then run. Useful when discarding stdout m2() { printf "%s\n" "$*" >&2; "$@"; } +# echo args, then run args in background, discarding output. +mq() { printf "%s\n" "$*"; "$@" &>/dev/null & } # better uptime diff --git a/brc2 b/brc2 index e44c101..b89604a 100644 --- a/brc2 +++ b/brc2 @@ -3055,7 +3055,7 @@ mns() { # mount namespace # systemd namespace + mount namespace sdmn() { - local ns unit user tmpf alt_user=false + local ns unit user tmpf pre_check pid alt_user=false local -a final_args user=$USER while [[ $1 ]]; do @@ -3094,7 +3094,7 @@ sdmn() { } mnsd() { # mount namespace + systemd network namespace - local ns unit user tmpf alt_user=false + local ns unit user tmpf pre_check pid alt_user=false local -a final_args ## begin command line args ## -- 2.30.2