James Vega wrote:
> On Tue, Aug 08, 2006 at 08:48:31PM +0200, Bram Moolenaar wrote:
> > --- 127,135 ----
> > let nmt =3D s:tempname(nm)
> > if rename(nm, nmt) =3D=3D 0
> > if exists("b:gzip_comp_arg")
> > ! call system(a:cmd . " " . b:gzip_comp_arg . " '" . nmt . "'")
> > else
> > ! call system(a:cmd . " '" . nmt . "'")
>
> If the filename itself has single quotes, this will prematurely end the
> quoting. escape(nmt, "'") should probably be used as well.
Escaping the single quotes probably doesn't work. You end up with
backslashes in the file name.
I tried editing the file t't.gz and that worked. This may depend on
the shell used.
--
>From "know your smileys":
:-| :-| Deja' vu!
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///