Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Short name bug - revisited.

26 views
Skip to first unread message

foxidrive

unread,
Jan 16, 2004, 6:45:28 AM1/16/04
to

This might bore the pants off some of you - for me it's new.

===[screen capture]===
C:\Download\OTHERS\NEWS\alt.binaries.fr.humour>dir oh* /b
oh yeah.gif

C:\Download\OTHERS\NEWS\alt.binaries.fr.humour>for %a in ("oh yeah.gif") do @echo %~sa
C:\DOWNLOAD\OTHERS\NEWS\ALTBIN~1.HUM\OHYEAH~1.GIF yeah.gif
===[/screen capture]===

Note the extra bit at the *end* of the short name.


===[screen capture]===
D:\>dir oh* /b
oh yeah.gif

D:\>for %a in ("oh yeah.gif") do @echo %~sa
D:\OHYEAH~1.GIF
===[/screen capture]===

Everything normal there.

===[screen capture]===
D:\>md alt.binaries.fr.humour

D:\>cd alt.binaries.fr.humour

D:\alt.binaries.fr.humour>for %a in ("oh yeah.gif") do @echo %~sa
D:\ALTBIN~1.HUM\oh yeah.gif

D:\alt.binaries.fr.humour>cd..

D:\>for %a in ("alt.binaries.fr.humour\oh yeah.gif") do @echo %~sa
D:\ALTBIN~1.HUM\oh yeah.gif
===[/screen capture]===

I presume this last section was the behaviour alluded to recently
by someone with regard to the short name bug, or were both bugs common knowledge?

foxidrive

unread,
Jan 16, 2004, 7:47:21 AM1/16/04
to
On Fri, 16 Jan 2004 11:45:28 GMT, foxidrive wrote:

> This might bore the pants off some of you - for me it's new.
>
> ===[screen capture]===
> C:\Download\OTHERS\NEWS\alt.binaries.fr.humour>dir oh* /b
> oh yeah.gif
>
> C:\Download\OTHERS\NEWS\alt.binaries.fr.humour>for %a in ("oh yeah.gif") do @echo %~sa
> C:\DOWNLOAD\OTHERS\NEWS\ALTBIN~1.HUM\OHYEAH~1.GIF yeah.gif
> ===[/screen capture]===
>
> Note the extra bit at the *end* of the short name.

> ===[screen capture]===


> D:\>md alt.binaries.fr.humour
>
> D:\>cd alt.binaries.fr.humour
>
> D:\alt.binaries.fr.humour>for %a in ("oh yeah.gif") do @echo %~sa
> D:\ALTBIN~1.HUM\oh yeah.gif
>
> D:\alt.binaries.fr.humour>cd..
>
> D:\>for %a in ("alt.binaries.fr.humour\oh yeah.gif") do @echo %~sa
> D:\ALTBIN~1.HUM\oh yeah.gif
> ===[/screen capture]===

oops. Maybe there was just the one bug after all.

===[screen capture]===
D:\alt.binaries.fr.humour>copy d:\oh*.gif
d:\oh yeah.gif
1 file(s) copied.

D:\alt.binaries.fr.humour>for %a in ("oh yeah.gif") do @echo %~sa

D:\ALTBIN~1.HUM\OHYEAH~1.GIF yeah.gif
===[screen capture]===

Todd Vargo

unread,
Jan 16, 2004, 5:18:16 PM1/16/04
to

"foxidrive" <foxi...@Shotmail.com> wrote in message
news:1raqb51i8wvd3$.1g3l10mhhd88o$.dlg@40tude.net...

Perhaps the OS and version might be of relevance. (?)
(I'm currently using win95cmd in Win98)

Then again, look at the output from these...
for %a in (oh*.gif) do echo %~nsa
for %a in (oh*.gif) do echo %~psa

--
Todd Vargo (body of message must contain my name to reply by email)

foxidrive

unread,
Jan 17, 2004, 2:20:20 AM1/17/04
to
On Fri, 16 Jan 2004 17:18:16 -0500, Todd Vargo wrote:

> "foxidrive" <foxi...@Shotmail.com> wrote in message
> news:1raqb51i8wvd3$.1g3l10mhhd88o$.dlg@40tude.net...
>>

>> oops. Maybe there was just the one bug after all.
>>
>> ===[screen capture]===
>> D:\alt.binaries.fr.humour>copy d:\oh*.gif
>> d:\oh yeah.gif
>> 1 file(s) copied.
>>
>> D:\alt.binaries.fr.humour>for %a in ("oh yeah.gif") do @echo %~sa
>> D:\ALTBIN~1.HUM\OHYEAH~1.GIF yeah.gif
>> ===[screen capture]===

> Perhaps the OS and version might be of relevance. (?)
> (I'm currently using win95cmd in Win98)

Windows XP.



> Then again, look at the output from these...
> for %a in (oh*.gif) do echo %~nsa
> for %a in (oh*.gif) do echo %~psa

===[screen capture]===
D:\alt.binaries.fr.humour>dir oh* /b
oh yeah.gif

D:\alt.binaries.fr.humour>for %a in (oh*.gif) do @echo %~nsa
IF yeah

D:\alt.binaries.fr.humour>for %a in (oh*.gif) do @echo %~psa
\ALTBIN~1.HUM\OHYEAH~1.G
===[screen capture]===

That's bizzare. Wonder if M$ will ever release a patch to fix it.
(Rhetorical question)

0 new messages