Fix substitution on older TCSH.

This commit is contained in:
2026-07-29 19:45:11 -04:00
parent 87cae283c0
commit fbfa1e382f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ foreach color ( ${cshenv_ls_colors} )
#_debug "Split: ${split}"
#_debug "First: ${split[1]}"
_debug "Match: ${match}"
_debug "Match: ${match:as/./*./}"
_debug "Match: ${match:as/./*----------/:as/----------/./}"
_debug "Args: ${args}"
_debug "${args:as/,/ /}"
if ( $?CSHENV_DEBUG ) then
+2 -2
View File
@@ -145,8 +145,8 @@ set referencechars_raw="${referencechars_raw} 2620"
_debug "Building unicode sigils table...."
if( ! $?CSHENV_NO_UNICODE_PRINTF ) then
_debug "${referencechars_raw:as/ / 0000/:as/ 00001/ 0001/:as/ / \U/}"
set referencechars_original=( `printf "${referencechars_raw:as/ / 0000/:as/ 00001/ 0001/:as/ / \\U/}"` )
_debug "${referencechars_raw:as/ /_\U0000/:as/_/ /:as/ 00001/ 0001/}"
set referencechars_original=( `printf "${referencechars_raw:as/ /_\U0000/:as/_/ /:as/ 00001/ 0001/}"` )
else
# Safe fallback for when there's no unicode printf
set referencechars_original="A B C D X Y Z"