Not possible to "source" bash script

Sysprogs forums Forums VisualGDB Not possible to "source" bash script

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10097
    hfrmobile
    Participant

    I have to call some bash scripts on the remote machine after building but it is not possible to “source” bash script in VisualGDB:

    • . script1.sh
    • script2.sh
    • script3.sh

    “Sourcing” the script1.sh is necessary because the other scripts need environment variables set/changed by the first script.

    Workaround: I created a “runall.sh” which does the lines above.

    Not sure if this is by design but caused me hours of  error search …

    #10104
    support
    Keymaster

    Hi,

    This is by design. Each command is started in a separate SSH channel, so the previous commands won’t affect the next ones. This is by design as otherwise unforeseen side effects from some commands executed early could cause very hard-to-diagnose bugs later.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.