-
Notifications
You must be signed in to change notification settings - Fork 0
ksh - Evaluate Removal of local #22
Copy link
Copy link
Open
Labels
designIndicates that design/evaluation is required rather than code, unit test, or documentation work.Indicates that design/evaluation is required rather than code, unit test, or documentation work.documentationImprovements or additions to documentationImprovements or additions to documentationpathfindingSubset of total changes needed. Worked first to learn before rest of work is started.Subset of total changes needed. Worked first to learn before rest of work is started.
Description
Activity
Metadata
Metadata
Assignees
Labels
designIndicates that design/evaluation is required rather than code, unit test, or documentation work.Indicates that design/evaluation is required rather than code, unit test, or documentation work.documentationImprovements or additions to documentationImprovements or additions to documentationpathfindingSubset of total changes needed. Worked first to learn before rest of work is started.Subset of total changes needed. Worked first to learn before rest of work is started.
Projects
- StatusShow more project fieldsBacklog
Overview
The usage of
localis breaking the unit tests ofksh. Determine what should be done about it.Details
The repository I took most of the code in this repository from (
shell_base), avoided the use oflocal. This is what allowed the functions to run in the Korn shell.I've since added
localto all my functions because I was running into issues where a local variable was getting clobbered by another called function. For example, callinglogging()would break the function that used logging.Determine why I wasn't seeing the issue that required the use of
localoriginally. It was a long time ago, but I seem to recall that it had to do with how I added the functions to the shell environment. Maybe how or where I sourced them, or perhaps I didn't source them?Justification
Removing the usage of
localwill allow for compatibility with the Korn shell.External References
Take a look at how the
shell_base'senvironmentSetup.shscript added functions to the user environment.Artifact(s)
localisn't needed.kshunit tests.kshis supported.local, then:kshunit tests and the GitHub action that installsksh.kshis not supported.local, but not trivial, create a GitHub issue for doing the work and updating documentation.Scope
Determine a path forward, only fix if change is trivial.
Open a PR for This Issue
Relationship(s)
Found By
Found while working #3.
Blocked By
Gotta finish #3 before a pipeline will exist.