From bcf5605476317df556a571556dd15437182a08f9 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 19 Apr 2022 19:46:26 +0200 Subject: [PATCH 1/1] Fix temporary file name for bgrun --- .config/mutt/bgrun | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/mutt/bgrun b/.config/mutt/bgrun index 100fe6c..37f40ad 100755 --- a/.config/mutt/bgrun +++ b/.config/mutt/bgrun @@ -87,9 +87,9 @@ get_file() { cat > "$t" echo "$t" else - t="$(echo ${1##*/} | sed -re 's![^[:alnum:],.@%^+=_-]!_!gi')" + t="$(echo -n ${1##*/} | sed -re 's![^[:alnum:],.@%^+=_-]!_!gi')" ln "$1" "$t" 2>/dev/null || cp "$1" "$t" - echo "$t" + echo "$PWD/$t" fi } -- 2.39.5