[Pkg-xfce-devel] Bug#530203: Bug#530203: thunar-thumbnailers: bashism in /bin/sh script

Raphael Geissert atomo64 at gmail.com
Thu Jul 16 09:05:01 UTC 2009


On Thursday 16 July 2009 08:07:55 Yves-Alexis Perez wrote:
> On sam, 2009-05-23 at 02:18 -0500, Raphael Geissert wrote:
> > checkbashisms' output:
> > > possible bashism in ./usr/lib/thunar-thumbnailers/tex-thumbnailer line
> > > 41 (unsafe echo with backslash):
> > >     echo "tex-thumbnailer: no \begin{document}"
>
> This is looks like a false positive, \begin{document} is a latex
> instruction. Or do you mean that backslash should be protected in sh
> mode?

That's  exactly what needs to be done. Notice the difference:
$ bash -c 'echo "foo \bash"'
foo \bash
$ dash -c 'echo "foo \bash"'
fooash

Cheers,
-- 
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net





More information about the Pkg-xfce-devel mailing list