[Pkg-clamav-devel] Bug#547743: clamav-unofficial-sigs bashism

Paul Wise pabs at debian.org
Tue Sep 29 02:49:10 UTC 2009


On Mon, 2009-09-28 at 12:43 -0700, Bill Landry wrote:

> I'll look into this and see if all "echo" commands I use will map over
> cleanly to "printf".  I would like to note that out of the many thousands
> of people currently using the script, I have not received a single
> complaint of my usage of "echo" in the script.  But with that said, I am
> not opposed to making the change if it does not adversely affect overall
> script functionality.

Yeah, most people use bash as their /bin/sh so they won't have
encountered this. You only need to replace the one use of echo -e with
printf so it works when /bin/sh isn't bash. Ubuntu has switched away
from bash ages ago and Debian is preparing to do so too.

> There is nothing broken here, as far as I know.  The use of \r here simply
> tells the script to continuously update the output on the same line
> (running total) as it is generating the signature database.  Or are you
> saying that this does not work correctly on Debian systems?

Ah, I see. I was misinterpreting what that code was doing. printf should
be able to output \r fine I think.

> You can use either site, I maintain them both and update both every time I
> release an update.

Ok, I'll stick with the old one for now, please let me know if you
switch to using the sf.net one exclusively.

-- 
bye,
pabs

http://wiki.debian.org/PaulWise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-clamav-devel/attachments/20090929/99a990a4/attachment.pgp>


More information about the Pkg-clamav-devel mailing list