]> git.cworth.org Git - notmuch-wiki/commitdiff
Add quotes in notmuch-attach script to handle correctly filenames with spaces
authorMichal Sojka <sojka@os.inf.tu-dresden.de>
Tue, 14 Feb 2012 08:57:59 +0000 (09:57 +0100)
committerMichal Sojka <sojka@os.inf.tu-dresden.de>
Tue, 14 Feb 2012 08:58:07 +0000 (09:58 +0100)
emacstips.mdwn

index 3eef27ebcb14ae1f097f632ec6e9003c10e5e174..070edba3b653a318e2a515d5fcdf44bd1cf92c3e 100644 (file)
@@ -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