TCL set Special Characters in a string

前端 未结 3 1074
名媛妹妹
名媛妹妹 2020-12-20 05:24

I want to set in TCL the below error message as a variable and compare with the error message from a network switch, by-passing the special characters

<
3条回答
  •  眼角桃花
    2020-12-20 05:51

    Well, you can use wrap it in curly brackets as follows:

    set x {Use [slot/port] or ["portname"] or [slot/] or [].}
    

    Alternatively, you can escape special characters with backslash.

提交回复
热议问题