Unportable test(1) construct

Bug #66336 reported by Thomas Klausner
4
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Low
Martin Pool

Bug Description

As of version 0.11, bzr is using the unportable bash extension "==" for test(1) in contrib/fortune. This is not supported by most other shells or even test(1) from GNU coreutils. Please use "=" instead. I'll attach a patch (if I manage).

Related branches

Revision history for this message
Thomas Klausner (tk-giga) wrote :
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 66336] Unportable test(1) construct

On Mon, 2006-10-16 at 01:08 +0000, Thomas Klausner wrote:
> Public bug reported:
>
> As of version 0.11, bzr is using the unportable bash extension "==" for
> test(1) in contrib/fortune. This is not supported by most other shells
> or even test(1) from GNU coreutils. Please use "=" instead. I'll attach
> a patch (if I manage).

We dont use or install contrib/fortune. I think we should just remove
it, in favour of actual documentation.

-Rob

--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Revision history for this message
Martin Pool (mbp) wrote :

Hi,

Can you tell me more about how you encountered this? That plugin is just intended as an example.

Revision history for this message
Thomas Klausner (tk-giga) wrote : Re: [Bug 66336] Re: Unportable test(1) construct

On Mon, Oct 16, 2006 at 03:33:16AM -0000, Martin Pool wrote:
> Can you tell me more about how you encountered this? That plugin is
> just intended as an example.

It was found during a search for this type of problems.
If the code is not used, so much the better.
I think it should be fixed to not serve as a wrong
example, though :)

Cheers,
 Thomas

Revision history for this message
John A Meinel (jameinel) wrote :

I agree that we should just delete that file.
I would also be very much in favor of deprecating ExternalCommand, and then removing support for it entirely.

Changed in bzr:
importance: Undecided → Low
status: Unconfirmed → Confirmed
Martin Pool (mbp)
Changed in bzr:
assignee: nobody → Martin Pool (mbp)
status: Confirmed → In Progress
Martin Pool (mbp)
Changed in bzr:
milestone: none → 2.2.0b1
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.