MantisBT - mSLDev
View Issue Details
0000240mSLDevGeneral (other)public2014-09-27 02:132014-09-27 02:43
Zmodem 
 
normalminoralways
newopen 
Win7 64-bitWindows 7(6.1)
 
 
Check if it's a beta version
7.34
0000240: Using variable declaration on same line as opening block code, followed by $&, results in terrible block management
For some reason, you cannot declare a variable on the same line as an opening alias block, and then proceed to use $& to concatenate the lines together.
Create a new line, or a new script file, and type the following:

alias varwhat { var %1 = This, $&
    %2 = Will, $&
    %3 = Not Work
  echo -a %1 %2 %3
}

You will notice that there will be a block indicator around the %3. Sometimes, the block even showed up at the 'echo' statement (if I pushed the var %1 down one line, then backspaced up, it would variably 'block' the echo statement).
No tags attached.
jpg msldevbug.jpg (9,871) 2014-09-27 02:13
http://www.msldev.com/bugs/file_download.php?file_id=12&type=bug
jpg
Issue History
2014-09-27 02:13ZmodemNew Issue
2014-09-27 02:13ZmodemFile Added: msldevbug.jpg
2014-09-27 02:43ZmodemNote Added: 0000166

Notes
(0000166)
Zmodem   
2014-09-27 02:43   
Okay, this seems to be the case with doing ANY line modifications to the immediate code block opening:

alias testthis { echo -a This | $&
    echo -a Should | $&
    echo -a Work
}