[Pkg-xfce-devel] Bug#530203: Bug#530203: Bug#530203: thunar-thumbnailers: bashism in /bin/sh script
- Subject: [Pkg-xfce-devel] Bug#530203: Bug#530203: Bug#530203: thunar-thumbnailers: bashism in /bin/sh script
- From: atomo64 at gmail.com (Raphael Geissert)
- Date: Wed, 5 Aug 2009 11:11:20 -0500
- Message-id: <[🔎] 200908051111.21070.atomo64@gmail.com>
- In-reply-to: <1247736050.27181.2.camel@miria>
- References: <200905230218.36164.atomo64@gmail.com> <200907161105.01844.atomo64@gmail.com> <1247736050.27181.2.camel@miria>
Hi,
Sorry for the very late response.
On Thursday 16 July 2009 04:20:50 Yves-Alexis Perez wrote:
> On jeu, 2009-07-16 at 11:05 +0200, Raphael Geissert wrote:
> > > 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
>
> Hmhm ok. And do you have an idea how to protect it?
>
Yes:
printf "%s\n" "\begin{document}"
$ bash -c 'printf "%s\n" "\begin{document}"'
\begin{document}
$ dash -c 'printf "%s\n" "\begin{document}"'
\begin{document}
Cheers,
--
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net
Reply to: