On Monday 05 September 2011, Peter Rosin wrote: > Den 2011-09-05 11:37 skrev Stefano Lattarini: > > Ouch! Silly me for not thinking about that. > > And the quoting was off too, should have been s/\./\\\\./g to > do what you intended... :-) > Double ouch, you're right again!
$ x=`echo a.b | sed 's/\./\\./g'`; printf '%s\n' "$x" a.b I should really give up attemping to understand how the `\' escaping works inside backticks... I've been burned so many times, sigh... :-( And maybe it's about time to write a configure check that looks for a POSIX shell, so that we can run our tests with it and dispense with the clumsy workarounds for exotic bugs and limitations; most of the framework is already in place anyway (e.g., automatic re-execing of tests with the configure-time shell), so that shouldn't be too difficult. But I'm cooking another patch right now, so this will have to wait. > Pushed now, thanks for looking! > Regards, Stefano