浏览代码

Merge pull request #4137 from troter/coffee-first-argument-with-double-quote

coffee: protect args with double-quote
Robby Russell 9 年之前
父节点
当前提交
f7c24e1808
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      plugins/coffee/coffee.plugin.zsh

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

@@ -2,11 +2,11 @@
 
 # compile a string of coffeescript and print to output
 cf () {
-  coffee -peb $1
+  coffee -peb "$1"
 }
 # compile & copy to clipboard
 cfc () {
-  cf $1 | pbcopy
+  cf "$1" | pbcopy
 }
 
 # compile from pasteboard & print