juju-introspection.sh causes error if user's shell is /bin/sh
Bug #1806776 reported by
Drew Freiberger
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
In Progress
|
Undecided
|
Unassigned |
Bug Description
/etc/profile.
-su: 31: /etc/profile.
I suspect the dashes in the function names are not supported in sh. Changing user shell to /bin/bash does resolve issue, however, for legacy support, it may be best to wrap the functions with dashes and the exports of the same in an 'if [ X$SHELL != X/bin/sh ]; then' block to allow for completion of profile setup for users with non-bash bourne shells.
To post a comment you must log in.
I believe this was fixed in 2.4. What version of Juju do you have?