1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is the tilde special?

Discussion in 'Support' started by vefatica, Mar 1, 2011.

  1. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,952
    Likes Received:
    30
    Below, the percent sign doesn't print when the escape character is ~. [The newline escape sequences are correctly recognized.]

    Code:
    v:\> type pct.btm & pct.btm
    echo ^r^n%@eval[1 / 3=1]%%^r^n
    setdos /e~
    echo ~r~n%@eval[1 / 3=1]%%~r~n
    setdos /e#
    echo #r#n%@eval[1 / 3=1]%%#r#n
    setdos /e^
    
    
    0.3%
    
    
    0.3
    
    
    0.3%
    
    
    v:\>
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,860
    Likes Received:
    83
    A %~ denotes the start of the (wacky) CMD-compatible special variable syntax.
     

Share This Page