Use a local for format like the other functions

This commit is contained in:
tcely authored and GitHub committed 2025-03-27 10:44:22 -04:00
1 parent 5757455b46
commit 73f683edc2
1 file changed
+1 -1
+1 -1
View File
@@ -4,7 +4,7 @@
set_sl_var() { local f='%s=%s\n' ; printf -- "${f}" "$@" ; } ;
# Used together to set multiple line variables in the environment or output
mk_delim() { printf -- '"%s_EOF_%d_"' "$1" "${RANDOM}" ; } ;
mk_delim() { local f='%s_EOF_%d_' ; printf -- "${f}" "$1" "${RANDOM}" ; } ;
open_ml_var() { local f=''\%'s<<'\%'s\n' ; printf -- "${f}" "$2" "$1" ; } ;
close_ml_var() { local f='%s\n' ; printf -- "${f}" "$1" ; } ;