On Fri, Mar 19, 2010 at 12:56 PM, Olin Lathrop wrote: > I guess I'm missing something. =A0Yes CMD.EXE is a lot more capable than > COMMAND.COM, the DOS command line processor. =A0However, files for CMD are > still named .BAT as far as I know. =A0Is there some different suffix that > turns on more extended features by default? There is no suffix that would turn extended mode or anything like that, however, you can put an extension of CMD there instead of BAT -- basically BAT is for backward compatibility only. Other (non-Microsoft) command processor may be more picky like 4NT, which accepts only CMD as far s I remember. Tamas > > I agree CMD has a lot more hidden features than most people seem to be aw= are > of. =A0However, I've used several different command shells and consider C= MD to > be the worst of the bunch. =A0I think the syntax for doing some things is > unnecessarily squirrely. =A0For example, while it is possible to get the > output of a program into a shell variable, this is neither intuitive nor = is > the syntax clear and easy to remember. > > Then there is the problem of very poorly handled "delayed environment > variable expansion". =A0This can be enabled on the CMD command line, but = as > far as I know a script can't enable it inside. =A0That means you can't re= ly on > it being on or off in a script a customer might run because you don't > control the CMD invocation. =A0You could have your script run a second CMD > invocation with the switch explicitly set, but that makes the shell scrip= ts > that rely on that very messy. > > The hard limit of 9 command line arguments to shell scripts is another > limitation. > > In the end you can get done what you need with CMD. =A0If you're doing > anything advanced though, it's usually not as nice and simple as with oth= er > command shells. > > > ******************************************************************** > Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products > (978) 742-9014. =A0Gold level PIC consultants since 2000. > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- = int main() { char *a,*s,*q; printf(s=3D"int main() { char *a,*s,*q; printf(s=3D%s%s%s, q=3D%s%s%s%s,s,q,q,a=3D%s%s%s%s,q,q,q,a,a,q); }", q=3D"\"",s,q,q,a=3D"\\",q,q,q,a,a,q); } -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist