Mail Archives: djgpp/1999/09/17/06:22:50
At 01:23 PM 9/16/99 +0200, you wrote:
>
BTW, I recently had annother problem with commandline parameters.
One of the users of my programs sent an email that commandline
switches that used to be lower case are "somehow" converted to
uppercase and lead to an error (the program checks the switches
in a case sensitive way).
Several hours (and 2 dozen emails...) later (Did you ever have a user
who told you the truth about what he actually did ???) I finally found
the following:
1) He was using Norton Commander v5.0 when he was calling the program.
2) He first typed the switches with the wrong case and got an error.
3) Afterwards he typed the switches in the correct case and the program executed
correctly.
(Everything OK so far, this is expected behavior.)
4) He used the Norton Commander's command history to execute the program again.
Here's the problem:
NC doesn't store subsequent duplicates of commands in the history.
When storing something into the history NC obviously makes a _caseinsensitive_
string compare, so it doesn't store the latest command because it thinks that
it is already there.
This is not actually DJGPP related but kept me debugging for some time ...
As NC is very common in the DOS-world I think some others might have seen
strange behavior too.
Tony
- Raw text -