Merge lp:~percona-toolkit-dev/percona-toolkit/pt-stalk-fails-to-start-if-HOME-environment-variable-is-not-set-1266869 into lp:~percona-toolkit-dev/percona-toolkit/release-2.2.13
Proposed by
Frank Cizmich
Status: | Superseded |
---|---|
Proposed branch: | lp:~percona-toolkit-dev/percona-toolkit/pt-stalk-fails-to-start-if-HOME-environment-variable-is-not-set-1266869 |
Merge into: | lp:~percona-toolkit-dev/percona-toolkit/release-2.2.13 |
Diff against target: | 0 lines |
To merge this branch: | bzr merge lp:~percona-toolkit-dev/percona-toolkit/pt-stalk-fails-to-start-if-HOME-environment-variable-is-not-set-1266869 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Nichter | Needs Fixing | ||
Review via email: mp+245206@code.launchpad.net |
This proposal has been superseded by a proposal from 2015-01-13.
Description of the change
Problem:
If $HOME is not set shell tools fail when trying to find config files.
This is a problem for users who want to start tools from init (e.g. pt-stalk)
Solution:
Allowed undefined variables for that line of code in parse_options.sh
Synced with rest of tools.
To post a comment you must log in.
This approach is too blunt. set -u was a specific design decision for this libs to force good code and avoid weird problems with undefined vars. If $HOME is the only consideration, can you conditionalize the call? I.e. if HOME is set, call it one way; if not set, call it another way?