You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a situation when I rely on the chain of loading commands, when one of the scripts load/source the source of another and after that works with declared functions.
in last line from code fragment I try to use function that is declared inside the _logger.sh file, and shellspec gives me the error:
.scripts/_commons.sh: line 21: pop_var_context: head of shell_variables not a function context
Unexpected output to stderr occurred at line 1-9 in 'spec/commons_spec.sh'
if I comment the logger line, everything is working. I understand that is possible to override the logic, but I need to understand why the nested source calls does not work as expected. Can it be fixed? maybe provided some kind of flag that will force the loading of the sub-script?
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
I try to write tests for my scripts - https://github.com/OleksandrKucherenko/e-bash
I have a situation when I rely on the chain of loading commands, when one of the scripts load/source the source of another and after that works with declared functions.
in last line from code fragment I try to use function that is declared inside the
_logger.sh
file, and shellspec gives me the error:if I comment the logger line, everything is working. I understand that is possible to override the logic, but I need to understand why the nested source calls does not work as expected. Can it be fixed? maybe provided some kind of flag that will force the loading of the sub-script?
Thanks
The text was updated successfully, but these errors were encountered: