X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/afddd41558a84ed3b402e38ec7b62bba38e71827..d5ef8d19353a453275f0cbe5f1d6faf77fe23493:/.config/mutt/bgrun?ds=inline 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 }