From ffcd3c75d9a5013a8b59d16f0fcf928e42e8a906 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 14 Oct 2024 21:39:26 +0200 Subject: term-open: Fix quoting of arguments Signed-off-by: Florian Pritz --- term-open | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'term-open') diff --git a/term-open b/term-open index d47367c..7307741 100755 --- a/term-open +++ b/term-open @@ -7,10 +7,10 @@ term=termite if [[ $cmd = "mutt" ]]; then if [[ "$*" = 'mailto:?'* ]]; then - exec termite -e "mutt -- $*" + exec termite -e "mutt -- ${*@Q}" else - exec termite -e "mutt -e 'set autoedit=yes' -- $*" + exec termite -e "mutt -e 'set autoedit=yes' -- ${*@Q}" fi fi -exec termite -e "$cmd -- $*" +exec termite -e "$cmd -- ${*@Q}" -- cgit v1.2.3-24-g4f1b