From dc501a9ec093f73d9cbff666df4bf16cd5a358fd Mon Sep 17 00:00:00 2001 From: "Simon J. Gerraty" Date: Tue, 21 May 2024 19:44:20 -0700 Subject: [PATCH] Allow DEBUG_SH=rc:all to debug all rc.d Usually a bad idea but there are exceptions to every rule. Allso debugging all rc.d scripts or all with a given arg. --- libexec/rc/rc.subr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr index 16b2c9fc5e88..6ed9d24fdf5c 100644 --- a/libexec/rc/rc.subr +++ b/libexec/rc/rc.subr @@ -1076,7 +1076,7 @@ run_rc_command() err 3 'run_rc_command: $name is not set.' fi - DebugOn rc:$name rc:$name:$rc_arg $name:$rc_arg + DebugOn rc:all rc:all:$rc_arg rc:$name rc:$name:$rc_arg $name:$rc_arg # Don't repeat the first argument when passing additional command- # line arguments to the command subroutines.