arthurnn / memcached

A Ruby interface to the libmemcached C client
Academic Free License v3.0
432 stars 127 forks source link

Use portable sed invocation #56

Closed avsej closed 13 years ago

avsej commented 13 years ago

Hi, guys

sed utility uses different syntax for in-place switch for BSD(macos) and GNU(linux) versions.

Linux: there no space after -i http://linux.die.net/man/1/sed Macos: there should be space after -i and they doesn't support long version http://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/sed.1.html

So they are mutually exclusive.

This patch provides portable invocation using intermediate file.