- May
- 13,740
- 209
BOMs (apparently) show up in the history and dirhistory after reading from a Unicode file (like a shralias sav file). Note the "?" characters below.
And the shell below was started with /U. TAIL really messes up Unicode output.
Code:
v:\> list /x dhtest.txt
0000 0000 ff fe 78 00 3a 00 5c 00 66 00 6f 00 6f 00 0d 00 ? x : \ f o o .
0000 0010 0a 00 .
v:\> dirhistory /r dhtest.txt
v:\> history /r dhtest.txt
v:\> dirhistory | tail
G:\projects
D:\PowerPro
d:\
G:\Projects\pppmem\Release
e:\Users\vefatica\Desktop
g:\Projects\pppmem
c:\
D:\tc11
V:\
?x:\foo
v:\> history | tail
type /x dhtest.txt
echo %@unicode[%@line[0,dhtest.txt]]
echo %@unicode[%@line[dhtest.txt,0]]
dirhistory
list /x dhtest.txt
dirhistory /r dhtest.txt
history /r dhtest.txt
?x:\foo
dirhistory | tail
history | tail
Code:
d:\tc11> dirhistory | tail
????????????????????????????????????????????????????????????????????????????????
?????????????????????????????????????????
ica\Desktop
??????????????????????????????????????????????????????
???????????????????????????
?x:\foo
?????????
v:\
??
?
v:\> echo foo | tail
foo
??
?
v:\>