浏览代码

Adding quotes around $1

Chris Smith 9 年之前
父节点
当前提交
9be81015d0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      plugins/marked/marked.plugin.zsh

+ 2 - 2
plugins/marked/marked.plugin.zsh

@@ -3,9 +3,9 @@
 # If marked is passed a file, open it in Marked
 #
 function marked() {
-    if [ $1 ]
+    if [ "$1" ]
     then
-        open -a "marked 2.app" $1
+        open -a "marked 2.app" "$1"
     else
         open -a "marked 2.app"
     fi