[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#322848: marked as done (lintian: false positive on possible bashism)



Your message dated Sat, 13 Aug 2005 15:08:30 +0200
with message-id <20050813130823.GN29911@djpig.de>
and subject line Bug#322848: lintian: false positive on possible bashism
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 13 Aug 2005 01:54:30 +0000
>From kov@debian.org Fri Aug 12 18:54:30 2005
Return-path: <kov@debian.org>
Received: from linares.terra.com.br [200.176.10.195] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1E3lED-00012v-00; Fri, 12 Aug 2005 18:54:29 -0700
Received: from bucavu.terra.com.br (bucavu.terra.com.br [200.176.10.6])
	by linares.terra.com.br (Postfix) with ESMTP id F29524DC028;
	Fri, 12 Aug 2005 22:54:27 -0300 (BRT)
X-Terra-Karma: -2%
X-Terra-Hash: ec7303efd66efd01e32030633c58b6a2
Received-SPF: none (bucavu.terra.com.br: 200.176.10.6 is neither permitted nor denied by domain of debian.org) client-ip=200.176.10.6; envelope-from=kov@debian.org; helo=localhost.localdomain;
Received: from localhost.localdomain (unknown [201.19.151.115])
	(authenticated user bhz52091)
	by bucavu.terra.com.br (Postfix) with ESMTP id 8D616153C027;
	Fri, 12 Aug 2005 22:54:27 -0300 (BRT)
Received: from kov by localhost.localdomain with local (Exim 4.52)
	id 1E3lE8-0005pp-TC; Fri, 12 Aug 2005 22:54:24 -0300
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Gustavo Noronha Silva <kov@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: lintian: false positive on possible bashism
X-Mailer: reportbug 3.15
Date: Fri, 12 Aug 2005 22:54:24 -0300
Message-Id: <[🔎] E1E3lE8-0005pp-TC@localhost.localdomain>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: lintian
Version: 1.23.11
Severity: normal

While checking my package I got these:

W: devhelp: possible-bashism-in-maintainer-script preinst:5 '[ "$1" = "upgrade" -o '
W: devhelp: possible-bashism-in-maintainer-script postrm:16 '&>'
W: devhelp: possible-bashism-in-maintainer-script postrm:17 '&>'

The first one is a real problem, but the other two are not. The
significant lines are:

    rmdir /etc/emacs/site-start.d > /dev/null 2&>1 || true
    rmdir /etc/emacs > /dev/null 2&>1 || true

I believe lintian may be confusing that with simply using >&. I tried
that kind of redirection on dash and surveyed #debian-devel. IIRC that
kind was used exactly because of being POSIX compliant.

Thanks,

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-686
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)

Versions of packages lintian depends on:
ii  binutils                   2.16.1-2      The GNU assembler, linker and bina
ii  diffstat                   1.39-1        produces graph of changes introduc
ii  file                       4.12-1        Determines file type using "magic"
ii  gettext                    0.14.5-2      GNU Internationalization utilities
ii  intltool-debian            0.30+20040213 Help i18n of RFC822 compliant conf
ii  libparse-debianchangelog-p 0.6-1         parse Debian changelogs and output
ii  man-db                     2.4.3-1       The on-line manual pager
ii  perl [libdigest-md5-perl]  5.8.7-4       Larry Wall's Practical Extraction 

lintian recommends no packages.

-- no debconf information

---------------------------------------
Received: (at 322848-done) by bugs.debian.org; 13 Aug 2005 13:08:33 +0000
>From frank@lichtenheld.de Sat Aug 13 06:08:33 2005
Return-path: <frank@lichtenheld.de>
Received: from higgs.djpig.de [213.133.98.126] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1E3vkX-0004z4-00; Sat, 13 Aug 2005 06:08:33 -0700
Received: from djpig by higgs.djpig.de with local (Exim 4.50)
	id 1E3vkU-0000j5-Gz
	for 322848-done@bugs.debian.org; Sat, 13 Aug 2005 15:08:31 +0200
Date: Sat, 13 Aug 2005 15:08:30 +0200
From: Frank Lichtenheld <djpig@debian.org>
To: 322848-done@bugs.debian.org
Subject: Re: Bug#322848: lintian: false positive on possible bashism
Message-ID: <20050813130823.GN29911@djpig.de>
References: <[🔎] E1E3lE8-0005pp-TC@localhost.localdomain> <[🔎] 20050813035117.GL29911@djpig.de> <[🔎] 1123911435.8504.58.camel@localhost.localdomain>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <[🔎] 1123911435.8504.58.camel@localhost.localdomain>
User-Agent: Mutt/1.5.9i
Delivered-To: 322848-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

On Sat, Aug 13, 2005 at 02:37:15AM -0300, Gustavo Noronha Silva wrote:
> Em Sáb, 2005-08-13 às 05:51 +0200, Frank Lichtenheld escreveu:
> > No, lintian is right. What you want to write is 2>&1. 2&>1 is completly
> > broken:
> > djpig@djpigpb:~/debian/tmp$ perl -e 'print STDERR "test\n";print "@ARGV\n"' 2&>1
> > djpig@djpigpb:~/debian/tmp$ cat 1
> > test
> > 2
> 
> You're totally right; sorry for my false positive =(.

np, closing the report.

Gruesse,
-- 
Frank Lichtenheld <djpig@debian.org>
www: http://www.djpig.de/



Reply to: