lib/warp/dir/app/response.rb in warp-dir-1.1.2 vs lib/warp/dir/app/response.rb in warp-dir-1.1.3

- old
+ new

@@ -16,10 +16,10 @@ under_shell = ::Warp::Dir.eval_context? if msg == ' ' under_shell ? stream.printf(%Q{printf '\\n'; }) : stream.printf("\n") else msg.split("\n").each do |line| - under_shell ? stream.printf(%Q{printf -- '#{line}\\n';}) : stream.printf("#{line}\n") + under_shell ? stream.printf(%Q{printf -- '#{line.gsub(/['`]/, '\"')}\\n';}) : stream.printf("#{line}\n") end end end def to_s