summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Sojka <sojka@os.inf.tu-dresden.de>2012-02-14 09:57:59 +0100
committerMichal Sojka <sojka@os.inf.tu-dresden.de>2012-02-14 09:58:07 +0100
commit5f5765ced6969050be63278f8dc77939571a2489 (patch)
tree965cd5e8f429fc9626b6a67aa7d00fdf7dd44775
parent926f3a1599c5875e7c3cab1ce47c2444a737af43 (diff)
Add quotes in notmuch-attach script to handle correctly filenames with spaces
-rw-r--r--emacstips.mdwn2
1 files changed, 1 insertions, 1 deletions
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