From f2526ff1c09f1381b274ea4159364141d87f54bf Mon Sep 17 00:00:00 2001 From: girst Date: Sun, 9 Oct 2022 12:16:22 +0200 Subject: [PATCH] shell-escape image urls partially implements https://unix.stackexchange.com/a/148455 --- format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format b/format index 59245de..fcc9400 100755 --- a/format +++ b/format @@ -40,7 +40,7 @@ $1 ~ /RedContentItem/ { tprint(italic "\n" join2($6,": ",$7)); } else if (!$8 && $9) { # image if (img) # display inline using unicode half-blocks - system ("curl -s " img_dst_at $9 " | viu -w" w); + system ("curl -s '\''" img_dst_at $9 "'\'' | viu -w" w); else # just print a link print img_dst_at $9; } else if ($8 ~ /va.derstandard.at/) { # video -- 2.39.3