View Single Post
  #5  
Old March 19th 20, 08:16 AM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,302
Default "echo one foo=bar" gives an unexpected result. Why ?

JJ,

(the subjectline has been corrected)

1. The "=" character is treated as delimiters.


Even on the commandline (and not just for batchfile commands) ? I never
knew that. Thanks.

dir foo=bar

That ends up making DIR listing two files: "foo" and "bar".


Which also happens with that "=" replaced by a space ... (in other words,
not something that happens because of that delimiter).

I've just done a (bit less than) quick search for a description of what that
"=" sign actually does/is for on the commandline, but got nowhere fast (a
lot of "how to escape it" or "what does it do in a batchfile" stuff though).

The problem (of sorts) is that I can see what it does, but have no idea (and
can't seem to find) what its purpose is. Currently all I have is a "look
people, this is funny!" application of it.

As my google-fu seems to be weak on this, do you have, by any chance, a link
to a description to what its ment for ?

Regards,
Rudy Wieser


Ads