/etc/init.d/keymap.sh Searches /etc/environment with wrong regexp.

Bug #18448 reported by Ralph Corderoy
12
Affects Status Importance Assigned to Milestone
console-common (Ubuntu)
Fix Released
Medium
Colin Watson
console-tools (Debian)
Fix Released
Unknown
kbd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

/etc/init.d/keymap.sh contains

    for var in LANG LC_ALL LC_CTYPE; do
        value=$(egrep "^[^#]*${var}=" /etc/environment | tail -n1 | cut -d= -f2)
        eval $var=$value
    done

egrep's pattern will match FOOLANG, OLDLANG, etc., same goes for the
other values of $var. Is this intended? I assume not, hence the bug
report.

Revision history for this message
Ralph Corderoy (ralph-inputplus) wrote :

*** Bug 18449 has been marked as a duplicate of this bug. ***

Revision history for this message
Ralph Corderoy (ralph-inputplus) wrote :

This section of /etc/init.d/keymap.sh hasn't changed in Dapper, Ubuntu 6.06.

Changed in console-common:
status: Unconfirmed → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package console-common - 0.7.80ubuntu2

---------------
console-common (0.7.80ubuntu2) jaunty; urgency=low

  * Resynchronise debian/keymap.sh with console-screen.sh from
    console-tools, fixing dubious grepping of /etc/environment and
    /etc/default/locale (LP: #18448).

 -- Colin Watson <email address hidden> Thu, 20 Nov 2008 13:55:32 +0000

Changed in console-common:
status: Confirmed → Fix Released
Changed in console-tools:
status: Unknown → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kbd - 1.14.1-4ubuntu2

---------------
kbd (1.14.1-4ubuntu2) jaunty; urgency=low

  * Resynchronise debian/console-screen.kbd.sh with console-screen.sh from
    console-tools, fixing dubious grepping of /etc/environment and
    /etc/default/locale (LP: #18448).

 -- Colin Watson <email address hidden> Thu, 20 Nov 2008 14:04:35 +0000

Changed in kbd:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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