From: Aredridel Date: 2003-09-01T09:13:42+09:00 Subject: Re: `echo %!(*` --=-6TJfVFJH3CjAPHhQErHv Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2003-08-31 at 17:51, Daniel Carrera wrote: > Try this: >=20 > - `vorbiscomment #{oldName}`.each_line do |line| > + `vorbiscomment "#{oldName}"`.each_line do |line| What you really want is a full shell-metacharacter escaper: class String def shellescape self.dup.gsub!(/([&!#<>'" ])/) do |s|=20 # I think that's all of them '\\' << s end end end and use `vorbiscomment #{oldname.shellescape}` --=-6TJfVFJH3CjAPHhQErHv Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQA/Uo8KtP09exA3hooRArM/AJ9iJpjTf7ihv4LeTuFx7GlO+fYKcQCg3/ph 8MD8m727WgsiM07B2lmL06I= =briX -----END PGP SIGNATURE----- --=-6TJfVFJH3CjAPHhQErHv--