Strange. [...]
No it isn't.� This is the documented behaviour of CMD.� It's also the documented behaviour of JP Software's TCC, a replacement for CMD.� (Notice that with TCC one can turn the behaviour on and off, for the benefit of those people who think that this inconsistency between scripts and interactive use should not exist.)