diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-08-24 12:25:53 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-08-24 12:25:53 -0700 |
commit | 7e2b00776213f86f54b9aa601e8593951b9de7d0 (patch) | |
tree | bc8d5f545162d5abf1fab5b4d54d3ae922042b12 /src/base/cmd/cmdApi.c | |
parent | 4a9152d0e1af415b7890b9a501b989b6472dbac8 (diff) | |
download | abc-7e2b00776213f86f54b9aa601e8593951b9de7d0.tar.gz abc-7e2b00776213f86f54b9aa601e8593951b9de7d0.tar.bz2 abc-7e2b00776213f86f54b9aa601e8593951b9de7d0.zip |
Added recording history of used commands into file 'abc.history' (Windows only).
Diffstat (limited to 'src/base/cmd/cmdApi.c')
-rw-r--r-- | src/base/cmd/cmdApi.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/base/cmd/cmdApi.c b/src/base/cmd/cmdApi.c index 6ae9342d..5b94f67e 100644 --- a/src/base/cmd/cmdApi.c +++ b/src/base/cmd/cmdApi.c @@ -86,7 +86,11 @@ int Cmd_CommandExecute( Abc_Frame_t * pAbc, const char * sCommand ) const char * sCommandNext; char **argv; - if ( !pAbc->fAutoexac ) + if ( !pAbc->fAutoexac && !pAbc->fSource && + strncmp(sCommand,"set",3) && + strncmp(sCommand,"quit",4) && + strncmp(sCommand,"source",6) && + strncmp(sCommand,"history",7) ) Cmd_HistoryAddCommand(pAbc, sCommand); sCommandNext = sCommand; do |