f7c24e1808441d4e8d9a35c728e964643f7a94fa

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

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

coffee: protect args with double-quote

Diff

 1diff --git a/plugins/coffee/coffee.plugin.zsh b/plugins/coffee/coffee.plugin.zsh
 2index 1a7bedd87fe9426f18c00e9f99bbc269a194406d..4e98e022869ea8b968ab4f3598f904bb51ff27d8 100644
 3--- a/plugins/coffee/coffee.plugin.zsh
 4+++ b/plugins/coffee/coffee.plugin.zsh
 5@@ -2,11 +2,11 @@
 6 
 7 # compile a string of coffeescript and print to output
 8 cf () {
 9-  coffee -peb $1
10+  coffee -peb "$1"
11 }
12 # compile & copy to clipboard
13 cfc () {
14-  cf $1 | pbcopy
15+  cf "$1" | pbcopy
16 }
17 
18 # compile from pasteboard & print