Incorrect parsing of double double-quotes

Bug #780441 reported by Mårten Wikström
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: bash

When parsing e.g. the string """"a bash will incorrectly replace """" with the value 127 (0x7f).

To reproduce type echo """"a and you will se a garbage character output.

I've also reported this bug upstreams, http://lists.gnu.org/archive/html/bug-bash/2011-05/msg00049.html

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: bash 4.2-0ubuntu3 [modified: bin/bash]
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Tue May 10 13:15:29 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release Candidate amd64 (20100928)
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=sv_SE.UTF-8
 LANGUAGE=sv_SE:en
SourcePackage: bash
UpgradeStatus: Upgraded to natty on 2011-04-29 (10 days ago)

Revision history for this message
Mårten Wikström (marten-wikstrom) wrote :
Revision history for this message
Mårten Wikström (marten-wikstrom) wrote :

Oh, and don't bother about the [modified: bin/bash] above, it is my patched working version of bash that I installed.

Revision history for this message
Joachim Nilsson (troglobit) wrote :

Yes, this is indeed very annoying! +1

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

This bug was fixed in the package bash - 4.2-0ubuntu4

---------------
bash (4.2-0ubuntu4) oneiric; urgency=low

  * Apply upstream patches:
    - 009: Fix segfault running `fc -l' two times in succession.
    - 010: Correctly print/reproduce here documents attached to commands
      inside compound commands.
  * Fix parsing of double doublequotes. LP: #780441.
  * /etc/bash.bashrc:
    - Fix quoting issue calling command-not-found. LP: #754859. Closes: #587185.
    - For .hushlogin file for sudo hint. LP: #672496.
  * Don't cache the value of brk between sbrk calls (Samuel Thibault).
    Closes: #614815.
 -- Matthias Klose <email address hidden> Wed, 18 May 2011 10:56:41 +0200

Changed in bash (Ubuntu):
status: New → 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.