#!/usr/bin/env bash
+# shellcheck disable=SC2016
USE_GLOW=true
if ! command -v glow >/dev/null 2>/dev/null; then
apply_shell_expansion() {
data="$1"
delimiter="__apply_shell_expansion_delimiter__"
- command="cat <<$delimiter"$'\n'"$data"$'\n'"$delimiter"
+ command=$(printf "cat <<%s\n%s\n%s" "$delimiter" "$data" "$delimiter")
eval "$command"
}