[Bug 1073077] Re: zsh complains about locale_warn on launch
Scott Moser
smoser at ubuntu.com
Tue Nov 6 19:42:10 UTC 2012
It would seem to me that this is a bug in zsh.
It is demonstrable like this:
ubuntu at quantal$ sh -c 'f="foo=bar"; echo ${f%%=*}'
foo
ubuntu at quantal$ bash -c 'f="foo=bar"; echo ${f%%=*}'
foo
ubuntu at quantal$ zsh -c 'f="foo=bar"; echo ${f%%=*}'
zsh:1: * not found
It is work-aroundable by escaping the '=' in the shell suffix match with a '\'. Ie:
zsh -c 'f="foo=bar"; echo ${f%%\=*}'
foo
** Also affects: zsh (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
+ zsh complains if an '=' occurs in a suffix or prefix shell parameter
+ expansion.
+
+ $ sh -c 'f="foo=bar"; echo ${f%%=*}'
+ foo
+ $ bash -c 'f="foo=bar"; echo ${f%%=*}'
+ foo
+ $ zsh -c 'f="foo=bar"; echo ${f%%=*}'
+ zsh:1: * not found
+
+ It is work-aroundable by escaping the '=' in the shell suffix match with a '\'. Ie:
+ $ zsh -c 'f="foo=bar"; echo ${f%%\=*}'
+ foo
+
+
+ == original bug report ==
+
After upgrading my Amazon machine to Ubuntu 12.04, every time I run zsh I get the following output:
- locale_warn:13: * not found
+ locale_warn:13: * not found
Apparenlty this is caused by the file /etc/profile.d/Z99-cloud-locale-
test.sh in the cloud-init package. zsh always outputs an error when a
glob like * fails to match any files.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: cloud-init 0.6.3-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-32.51-virtual 3.2.30
Uname: Linux 3.2.0-32-virtual i686
ApportVersion: 2.0.1-0ubuntu14
Architecture: i386
Date: Tue Oct 30 11:03:46 2012
Ec2AMI: ami-fb9ca98f
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: eu-west-1c
Ec2InstanceType: c1.medium
Ec2Kernel: aki-4deec439
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
- TERM=xterm
- PATH=(custom, user)
- LANG=en_GB.UTF-8
- SHELL=/usr/bin/zsh
+ TERM=xterm
+ PATH=(custom, user)
+ LANG=en_GB.UTF-8
+ SHELL=/usr/bin/zsh
SourcePackage: cloud-init
UpgradeStatus: Upgraded to precise on 2012-10-29 (0 days ago)
** Changed in: cloud-init (Ubuntu)
Status: New => Triaged
** Changed in: cloud-init (Ubuntu)
Importance: Undecided => Low
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1073077
Title:
zsh complains about locale_warn on launch
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1073077/+subscriptions
More information about the Ubuntu-server-bugs
mailing list