From 5f5765ced6969050be63278f8dc77939571a2489 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 14 Feb 2012 09:57:59 +0100 Subject: [PATCH] Add quotes in notmuch-attach script to handle correctly filenames with spaces --- emacstips.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacstips.mdwn b/emacstips.mdwn index 3eef27e..070edba 100644 --- a/emacstips.mdwn +++ b/emacstips.mdwn @@ -87,7 +87,7 @@ mentioned as script arguments. (Note: The script expects that you have #!/bin/sh attach_cmds="" while [ "$1" ]; do - fullpath=$(readlink --canonicalize $1) + fullpath=$(readlink --canonicalize "$1") attach_cmds="$attach_cmds (mml-attach-file \"$fullpath\")" shift done -- 2.43.0