Hi, Sir_Silva.
I have no idea which os you use, but at xp with sp2 you are 100% wrong...
WinXP Prof Sp1 German.
You are right about cmd.exe. I was using 4NT V5.0. And 4NT.EXE interprets %COMMANDER_PATH% as an empty string, because it has not been defined.
How undefined variables are interpreted by a shell is more a matter of convention than a matter of bugs. Or are you seriously suggesting that 4NT is buggy because it treats an undefined variable as an empty string? (Edit 21.02.2005: I tend to plead that the most logical reaction would be to reject undefined variables under all circumstances thus revealing typing errors?!)
But you cannot be completely right about cmd.exe. It behaves as you say on the command line.
Yet inside batch files this works as I expect it:
if "%_4ver%"=="" goto CMDEXE
_4ver is undefined outside 4NT, and inside a batchfile cmd.exe says that "%_4ver%"="", not that "%_4ver%"="%_4ver%".
And inside a batchfile the command
echo "%_4ver%" writes two double quotes on the screen, not "%_4ver%".
So, cmd.exe seems to be not too consistent in its way of treating undefined variables.
(Yet, this is definetely too far offtopic now, so I suggest to postpone it to another Sunday afternoon when my girl friend is out to work.)
can say you are only 95% wrong
Hm, I do not really believe that 5% of all Windows users use 4NT, the percentage is probably much lower.
But very likely the Win98 users will increase my percentage to 5%.
you're starting TC allways with typing in a dosbox
Nope, just when I am trying out different command line parameters. Else I launch it from the Windos Quick Launch Bar and most programmes from inside TC.
So, I correct what I learnt today:
+ Some newer Windows implementations do not try to expand undefined variables, but pass them to a programme unmodified.
+ This is true for Explorer as well as cmd.exe (for cmd.exe partially).
+ 4NT is not a Microsoft programme and may not conform to Microsoft conventions under all circumstances.
+ Edit 21.02.2005: Si tacuisses philosophos mansises or something like that, anyway, trying to prove other people are doing something in a wrong way without thorough testing will only prove what a fool I am myself
+ I must not use color formatting in this forum.
Regards,
Karl
--
Gone downstairs to the cellar and about to jump out of that window ...