@Eli,
I can recreate your problem, but it looks to me like a bug in ksh. ksh
complains that 'local can only be used in a function, when as shown
below it *is* being used in a function.'
My suggestion is to file a bug with ksh2020.
root@focal1:~# ksh -c 'foo() { local a=1; echo $?; }; foo'
ksh:
$ apt list --installed 2>&1 | grep -E '^(cloud-init|ksh)/'
cloud-init/focal-updates,now 21.2-3-g899bfaa9-0ubuntu2~20.04.1 all [installed]
ksh/focal,now 2020.0.0-5 amd64 [installed]
$ echo $SHELL
/bin/ksh
$ . /etc/profile.d/Z99-cloud-locale-test.sh
-ksh: .[14]: local: local can only be used in a fun
This bug is believed to be fixed in cloud-init in version 18.4. If this
is still a problem for you, please make a comment and set the state back
to New
Thank you.
** Changed in: cloud-init
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a membe
** Changed in: cloud-init (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1784713
Title:
cloud-init profile.d files use bash-specific builtin "local"
** Merge proposal linked:
https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/352825
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1784713
Title:
cloud-init profile.d files
** Also affects: cloud-init
Importance: Undecided
Status: New
** Changed in: cloud-init
Importance: Undecided => Low
** Changed in: cloud-init
Status: New => Fix Committed
** Changed in: cloud-init
Assignee: (unassigned) => Scott Moser (smoser)
--
You received this bug
This bug is fixed with commit 538af8e6 to cloud-init on branch master.
To view that commit see the following URL:
https://git.launchpad.net/cloud-init/commit/?id=538af8e6
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.lau
@Merlie,
could you please test the attached merge proposal and report if it works?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1784713
Title:
cloud-init profile.d files use bash-specific builtin "
** Merge proposal linked:
https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/352010
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1784713
Title:
cloud-init profile.d files use b
Can you test if this works?
http://paste.ubuntu.com/p/wyPPhjRRzP/
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1784713
Title:
cloud-init profile.d files use bash-specific builtin "local"
To manag
** Changed in: cloud-init (Ubuntu)
Status: New => Confirmed
** Changed in: cloud-init (Ubuntu)
Importance: Undecided => Low
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1784713
Title:
cl
11 matches
Mail list logo