Activity log for bug #1073077

Date Who What changed Old value New value Message
2012-10-30 09:07:16 Marti bug added bug
2012-11-06 19:42:27 Scott Moser bug task added zsh (Ubuntu)
2012-11-06 19:44:14 Scott Moser description After upgrading my Amazon machine to Ubuntu 12.04, every time I run zsh I get the following output: 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 SourcePackage: cloud-init UpgradeStatus: Upgraded to precise on 2012-10-29 (0 days ago) 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 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 SourcePackage: cloud-init UpgradeStatus: Upgraded to precise on 2012-10-29 (0 days ago)
2012-11-06 19:44:39 Scott Moser cloud-init (Ubuntu): status New Triaged
2012-11-06 19:44:43 Scott Moser cloud-init (Ubuntu): importance Undecided Low
2012-11-06 19:51:23 Launchpad Janitor branch linked lp:ubuntu/cloud-init
2012-11-06 19:51:51 Scott Moser cloud-init (Ubuntu): status Triaged Fix Committed
2012-11-06 20:02:41 Scott Moser nominated for series Ubuntu Precise
2012-11-06 20:02:41 Scott Moser bug task added zsh (Ubuntu Precise)
2012-11-06 20:02:41 Scott Moser bug task added cloud-init (Ubuntu Precise)
2012-11-06 20:02:41 Scott Moser nominated for series Ubuntu Quantal
2012-11-06 20:02:41 Scott Moser bug task added zsh (Ubuntu Quantal)
2012-11-06 20:02:41 Scott Moser bug task added cloud-init (Ubuntu Quantal)
2012-11-06 20:03:58 Scott Moser cloud-init (Ubuntu Precise): status New Triaged
2012-11-06 20:04:00 Scott Moser cloud-init (Ubuntu Quantal): status New Triaged
2012-11-06 20:04:02 Scott Moser cloud-init (Ubuntu Precise): importance Undecided Medium
2012-11-06 20:04:05 Scott Moser cloud-init (Ubuntu Quantal): importance Undecided Medium
2012-11-06 20:04:09 Scott Moser cloud-init (Ubuntu Precise): importance Medium Low
2012-11-06 20:04:11 Scott Moser cloud-init (Ubuntu Quantal): importance Medium Low
2012-11-06 20:08:11 Launchpad Janitor branch linked lp:~smoser/ubuntu/precise/cloud-init/sru
2012-11-06 20:29:12 Scott Moser cloud-init (Ubuntu): status Fix Committed Triaged
2012-11-06 20:29:19 Scott Moser bug task added cloud-init
2012-11-06 20:29:56 Launchpad Janitor branch linked lp:cloud-init
2012-11-06 20:35:48 Scott Moser cloud-init: status New Fix Committed
2012-11-06 20:35:50 Scott Moser cloud-init: importance Undecided Low
2012-11-07 19:55:12 Scott Moser bug task deleted zsh (Ubuntu Quantal)
2012-11-07 19:55:21 Scott Moser bug task deleted zsh (Ubuntu Precise)
2012-11-08 16:01:48 Scott Moser description 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 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 SourcePackage: cloud-init UpgradeStatus: Upgraded to precise on 2012-10-29 (0 days ago) == SRU Information == [Impact] * Users who select zsh as shell and invoke /etc/profile.d scripts see an error message like:     locale_warn:13: * not found * This contained fix makes that error message go away, and makes the Z99-cloud-locale-test.sh script in /etc/profile.d function properly with zsh. * The fix adds new code to run 'emulate -L sh' if and only if the variable ZSH_NAME is defined (which is only likely to be true if shell is zsh). Per zshbuiltins(1), '-L' to 'emulate' indicates that the change in behavior should be limited to the containing function. [Test Case] * launch cloud-image instance, get IP address and set 'IP' for use below. * install zsh, change the 'ubuntu' user's shell LC_ALL=en_US.UTF-8 ssh ubuntu@$IP \ "sudo DEBIAN_FRONTEND=noninteractive apt-get install -y zsh" * problem is then reproduced with: LC_ALL=fr_FR.UTF-8 zsh /etc/profile.d/Z99-cloud-locale-test.sh Instead of seeing a message about invalid locale and how to fix it, the user will see: locale_warn:13: * not found [Regression Potential] * chance for regression is low, since the only real change is contained with a condition that will limit it to the case where the shell is zsh. * If there was fallout, it would one of: * 'emulate -L' being run with non-zsh shell, likely resulting in an error message but nothing worse. * user's zsh shell being changed to 'emulate sh' (if the '-L' did not get applied correctly) == End SRU Information == 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 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 SourcePackage: cloud-init UpgradeStatus: Upgraded to precise on 2012-10-29 (0 days ago)
2012-11-14 20:32:53 Scott Moser cloud-init: status Fix Committed Fix Released
2012-11-14 21:11:11 Launchpad Janitor cloud-init (Ubuntu): status Triaged Fix Released
2012-11-29 15:17:52 Launchpad Janitor branch linked lp:~smoser/ubuntu/quantal/cloud-init/sru
2012-12-02 03:42:17 Scott Moser cloud-init (Ubuntu Quantal): status Triaged In Progress
2012-12-02 03:42:19 Scott Moser cloud-init (Ubuntu Quantal): assignee Scott Moser (smoser)
2012-12-10 23:05:20 Steve Langasek cloud-init (Ubuntu Precise): status Triaged Fix Committed
2012-12-10 23:05:24 Steve Langasek bug added subscriber Ubuntu Stable Release Updates Team
2012-12-10 23:05:29 Steve Langasek bug added subscriber SRU Verification
2012-12-10 23:05:32 Steve Langasek tags apport-bug ec2-images i386 precise apport-bug ec2-images i386 precise verification-needed
2012-12-12 21:03:22 Scott Moser tags apport-bug ec2-images i386 precise verification-needed apport-bug ec2-images i386 precise verification-done
2012-12-13 20:29:42 Clint Byrum cloud-init (Ubuntu Quantal): status In Progress Fix Committed
2012-12-13 20:29:46 Clint Byrum tags apport-bug ec2-images i386 precise verification-done apport-bug ec2-images i386 precise
2012-12-13 20:29:48 Clint Byrum tags apport-bug ec2-images i386 precise apport-bug ec2-images i386 precise verification-needed
2013-01-08 23:42:40 Scott Moser tags apport-bug ec2-images i386 precise verification-needed apport-bug ec2-images i386 precise verification-done
2013-01-16 14:20:17 Launchpad Janitor cloud-init (Ubuntu Precise): status Fix Committed Fix Released
2013-01-16 14:20:45 Colin Watson removed subscriber Ubuntu Stable Release Updates Team
2013-01-16 14:21:09 Launchpad Janitor cloud-init (Ubuntu Quantal): status Fix Committed Fix Released
2013-02-20 13:14:28 Scott Moser bug task deleted zsh (Ubuntu)
2013-08-28 11:32:39 Launchpad Janitor branch linked lp:~ubuntu-branches/ubuntu/precise/cloud-init/precise-proposed
2013-08-28 11:33:11 Launchpad Janitor branch linked lp:~ubuntu-branches/ubuntu/quantal/cloud-init/quantal-proposed
2023-05-09 22:09:07 James Falcon bug watch added https://github.com/canonical/cloud-init/issues/2312