From: Michal Sojka Date: Tue, 14 Feb 2012 08:57:59 +0000 (+0100) Subject: Add quotes in notmuch-attach script to handle correctly filenames with spaces X-Git-Url: https://git.cworth.org/git?p=notmuch-wiki;a=commitdiff_plain;h=5f5765ced6969050be63278f8dc77939571a2489 Add quotes in notmuch-attach script to handle correctly filenames with spaces --- 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