cedilla-brazil.sh writes errors on login: line 21: [: too many arguments

Bug #1439711 reported by Scott Moser on 2015-04-02
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
language-selector (Ubuntu)
Medium
Unassigned

Bug Description

fresh vivid cloud instance, ssh in:
$ ssh <email address hidden>
Last login: Thu Apr 2 13:59:07 2015 from d149-67-16-30.nap.wideopenwest.com
-bash: [: too many arguments

the issue
/etc/profile.d/cedilla-brazil.sh

says:
 | if [ -n $LC_IDENTIFICATION -a ${LC_IDENTIFICATION%.*} = 'pt_BR' ]; then
 | export LC_CTYPE="$LC_IDENTIFICATION"
 | fi

This is fixed by just qouting.

if [ -n "$LC_IDENTIFICATION" -a "${LC_IDENTIFICATION%.*}" = "pt_BR" ]; then
fi

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: language-selector-common 0.141
ProcVersionSignature: User Name 3.19.0-11.11-generic 3.19.3
Uname: Linux 3.19.0-11-generic x86_64
ApportVersion: 2.17-0ubuntu1
Architecture: amd64
Date: Thu Apr 2 14:01:59 2015
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: language-selector
UpgradeStatus: No upgrade log present (probably fresh install)

Scott Moser (smoser) wrote :
Scott Moser (smoser) wrote :

this was fixed in
language-selector (0.142) vivid; urgency=medium

  * data/cedilla-brazil.sh: Fix broken shell from previous upload.

 -- Adam Conrad <email address hidden> Wed, 01 Apr 2015 11:47:00 -0600

Changed in language-selector (Ubuntu):
importance: Undecided → Medium
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers