[Logcheck-devel] Bug#508546: Bug#508546: unecessary bashism

Gerfried Fuchs rhonda at deb.at
Fri Dec 12 16:27:50 UTC 2008


tags 508546 - patch
tags 508546 + moreinfo
severity 508546 wishlist

Am Freitag, den 12.12.2008, 11:25 +0100 schrieb Yuri D'Elia:
> Package: logcheck
> Severity: important
> Tags: patch
> 
> /usr/sbin/logcheck depends on bash to work due to a single bashism
> in line 25:
> 
> if [ $UID == 0 ]; then
> 
> change it to:
> 
> if [ `id -u` = 0 ]; then
> 
> and substitute the shebang to /bin/sh please.

 What would be the real gain of it? Because actually, I don't really see
it. Especially, what's the deal with calling this severity important? If
anything it is wishlist, not?

 Can you please explain what does upset you so much about this? It's not
if bash would be any totally obscure and not available shell, it's the
default shell in most linux distributions out there and I wouldn't know
a single system that doesn't include it, and that includes cygwin for
windows.

 Thanks,
Rhonda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20081212/390a06e8/attachment.pgp 


More information about the Logcheck-devel mailing list