mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 13:36:35 +00:00
11 lines
447 B
Bash
11 lines
447 B
Bash
#!/usr/bin/env sh
|
|
|
|
# For setting single line variables in the environment or output
|
|
set_sl_var() { local f='%s=%s\n' ; printf -- "${f}" "$@" ; } ;
|
|
|
|
# Used together to set multiple line variables in the environment or output
|
|
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" ; } ;
|
|
|