Emulation of an environment set by a sourced script written in a different scripting language

    公开(公告)号:US11074071B1

    公开(公告)日:2021-07-27

    申请号:US16741300

    申请日:2020-01-13

    摘要: An embodiment includes storing original environment data in a memory of a computing device, then sourcing a script in a child command shell that includes an environment variable set-up command for setting an environmental characteristic of a new computing environment associated with the child command shell. The new environment data is also stored in the memory of the computing device that defines the new computing environment associated with the child command shell. The original computing environment is then restored by terminating the child command shell and returning to the target command shell. The original environment data is compared to the new environment data to determine the differences between the two environments, and the original computing environment is then modified to match the new computing environment created by the sourced script.

    EMULATION OF AN ENVIRONMENT SET BY A SOURCED SCRIPT WRITTEN IN A DIFFERENT SCRIPTING LANGUAGE

    公开(公告)号:US20210216310A1

    公开(公告)日:2021-07-15

    申请号:US16741300

    申请日:2020-01-13

    摘要: An embodiment includes storing original environment data in a memory of a computing device, then sourcing a script in a child command shell that includes an environment variable set-up command for setting an environmental characteristic of a new computing environment associated with the child command shell. The new environment data is also stored in the memory of the computing device that defines the new computing environment associated with the child command shell. The original computing environment is then restored by terminating the child command shell and returning to the target command shell. The original environment data is compared to the new environment data to determine the differences between the two environments, and the original computing environment is then modified to match the new computing environment created by the sourced script.