Re: [TxMt] “Reformat Comment” command for Ruby bundle

Daniel Harple dharple at generalconsumption.org
Wed Aug 23 17:34:42 UTC 2006


On Aug 23, 2006, at 10:41 AM, James Edward Gray II wrote:

> You can tell I use soft tabs.  ;)
>
> How's it look now?

text =`echo -n "#{e_as(STDIN.read)}" | ruby "#{ENV 
["TM_SUPPORT_PATH"]}/bin/rubywrap.rb" #{flags}`

should be:

text =`echo -n #{e_sh(STDIN.read)} | ruby "#{ENV["TM_SUPPORT_PATH"]}/ 
bin/rubywrap.rb" #{flags}`

This way it won't eat $variables and other shell specific stuff.

Regards,
-- Daniel




More information about the textmate mailing list