bash scriptings discrepencies

Bug #81794 reported by Arnold J Noronha
2
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: bash

The following script works differently on Edgy/DebianEtch and Feisty

if [[ "arn.cpp " =~ ".cpp[[:blank:]]" ]] ; then echo yes; fi

In Feisty, it gives no output. In Edgy/DebianEtch it prints yes.

[Edited later]

Tags: bash feisty
description: updated
Revision history for this message
Matthias Klose (doko) wrote :

please check that you really use /bin/bash as the interpreter. /bin/sh points to dash in feisty. [[ is a bashism and needs the /bin/bash interpreter.

Changed in bash:
status: Unconfirmed → Needs Info
Revision history for this message
Arnold J Noronha (arnold) wrote :

<code>
$ ls -l `which sh`
lrwxrwxrwx 1 root root 9 2006-11-04 12:20 /bin/sh -> /bin/bash

$ ls -l /bin/bash
-rwxr-xr-x 1 root root 700560 2007-01-08 23:10 /bin/bash
</code>

I specifically tried opening bash, and then the said script (in feisty and DebianEtch), the problem persists.

In particular I also tried:

<code>
$ [[ "arn.cpp " =~ ".cpp[[:blank:]]" ]]
$ echo $?
1
</code>

Revision history for this message
Arnold J Noronha (arnold) wrote :

I should mention the last two code segments were on my feisty machine.
--arnold

Revision history for this message
Arnold J Noronha (arnold) wrote :

So can nobody else see this bug?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for bash (Ubuntu) because there has been no activity for 60 days.]

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.