summaryrefslogtreecommitdiffstats
path: root/term-open
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2024-10-14 21:39:26 +0200
committerFlorian Pritz <bluewind@xinu.at>2024-10-14 21:54:03 +0200
commitffcd3c75d9a5013a8b59d16f0fcf928e42e8a906 (patch)
tree3bcb25e550b85b9ad61efeaac46ede68abd754e6 /term-open
parent37ef1a9137a981652355788528d215ff29f98e7f (diff)
downloadbin-ffcd3c75d9a5013a8b59d16f0fcf928e42e8a906.tar.gz
bin-ffcd3c75d9a5013a8b59d16f0fcf928e42e8a906.tar.xz
term-open: Fix quoting of arguments
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'term-open')
-rwxr-xr-xterm-open6
1 files changed, 3 insertions, 3 deletions
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}"