Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1678

TAIL counts lines differently based on character encoding

$
0
0
Code:
C:\>option //unicodeoutput=no

C:\>setdos | tail /n 4
PARAMETERS=$
CURSOR OVERSTRIKE=100
CURSOR INSERT=15
VERBOSE=1

C:\>option //unicodeoutput=yes

C:\>setdos | tail /n 4
CURSOR OVERSTRIKE=100
CURSOR INSERT=15
VERBOSE=1

C:\>option //unicodeoutput=no

C:\>setdos | tail /n 4
PARAMETERS=$
CURSOR OVERSTRIKE=100
CURSOR INSERT=15
VERBOSE=1

C:\>

One of my "bugs nobody cares about" involved @EXECSTR[-n,command] sometimes returning a 'phantom' blank line. After @ClioCJS's post...

Read more

Viewing all articles
Browse latest Browse all 1678

Trending Articles