Problem 294 - Mistyped commands silently ignored in batch mode
Summary: Mistyped commands silently ignored in batch mode
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: intercoms (show other problems)
Version: 3.2
Hardware: PC Linux
: P2 normal
Assignee: Makoto.Asai
URL:
Depends on:
Blocks:
 
Reported: 2001-08-27 14:43 CEST by gas
Modified: 2001-08-28 01:10 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description gas 2001-08-27 14:43:54 CEST
Unrecognized commands are silently ignored in batch mode.  This can be a serious
problem.  For example, great confusion was caused for a time in our
collaboration by someone using /klscint/reemmission/off instead of
/klscint/reemission/off in a batch file.  (Note number of "m"'s.)  The potential
for confusion is real, especially since some built-in Geant4 commands are
themselves misspellings or malapropisms ("/process/inactivate" comes to mind).

The problem arises because G4batch does not check the return value from
UImanager->ApplyCommand(commandLine), while UImanager itself takes no
responsibility for reporting errors to the user, apparently by design (old code
to report "Command Not Found" is explicitly commented out at line 244 of
G4UImanager.cc).
Comment 1 Makoto.Asai 2001-08-28 01:10:59 CEST
Thanks for your report.
The fix is committed and it should appear on the next release.