Commit d455636
committed
Ensure no autoinit loop when set_shell_startup set
Set the __MODULES_AUTOINIT_INPROGRESS environment variable when running
the `autoinit` sub-command and quit autoinit process if this variable is
found defined and equal to 1 when starting it. Ensure this way that an
autoinit process will not be triggered indefinitely by itself when the
set_shell_startup option is enabled and some module loaded at
initialization time relies on the execution of a bash script.
Fixes #414.1 parent 9383dbe commit d455636
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1668 | 1668 | | |
1669 | 1669 | | |
1670 | 1670 | | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
1671 | 1679 | | |
1672 | 1680 | | |
1673 | 1681 | | |
| |||
1751 | 1759 | | |
1752 | 1760 | | |
1753 | 1761 | | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
1754 | 1765 | | |
1755 | 1766 | | |
1756 | 1767 | | |
| |||
0 commit comments