From a75180f6223ddc49f4dc44654eee1d1286a48b11 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Tue, 23 Jun 2026 19:09:28 -0400 Subject: [PATCH] New safe_source logic. --- tcshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tcshrc b/tcshrc index fb16b15..ad8b5d0 100644 --- a/tcshrc +++ b/tcshrc @@ -53,10 +53,14 @@ endif _debug "Setting up optional sourcing mechanism." # This safe_source alias is incredibly delicate. It drives the whole # optional sourcing mechanism -- DO NOT MESS WITH IT! -alias safe_source 'eval "if ( -f \!:1 ) then \\ +alias old_safe_source 'eval "if ( -f \!:1 ) then \\ source \!:1 \\ endif"' +alias new_safe_source "test -f \!:1 && source \!:1" + +alias safe_source new_safe_source + _debug "Setting up optional session sourcing mechanism." # These reload_session and `__load_session` aliases ar incredibly delicate. They drives # the whole optional session mechanism -- DO NOT MESS WITH IT LIGHTLY!