Browse Source

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

coffee: protect args with double-quote
Robby Russell 9 years ago
parent
commit
f7c24e1808
1 changed files with 2 additions and 2 deletions
  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