Passing a Variable to a script calling itself

后端 未结 1 732
無奈伤痛
無奈伤痛 2020-12-11 12:51

My Script is storing a ClearCase View in a Variable. To operate in this View, the Script needs to call itself inside the View again, after it started the View. The Code look

相关标签:
1条回答
  • 2020-12-11 13:40

    Call the Script in the new-set View with parameter -ViewSet

    If that involve calling cleartool setview, don't: setview spawns a subshell in which what you have defined in your script won't be visible.

    When your script needs to access the dynamic view started, do use the full dynamic view path:

    /view/myDynView
    # under which you would see:
    /view/myDynView/vobs/MyVob
    
    0 讨论(0)
提交回复
热议问题