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

Bug #18449 reported by Ralph Corderoy
6
Affects Status Importance Assigned to Milestone
console-common (Ubuntu)
Invalid
Medium
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 :

Sorry, I seem to have created two bugs in a row somehow. Perhaps by
`middle clicking' Commit which didn't appear to do anything?

This bug has been marked as a duplicate of bug 18448.

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.