- the number of commands in the history list is now configureable via the
config system - added a new config option to allow persistant history lists. This is currently only used by ash, but the calls ({load,save}_history) could be added to the other shells as well.
This commit is contained in:
@@ -7356,6 +7356,10 @@ int ash_main(int argc, char **argv)
|
||||
|
||||
if (sflag || minusc == NULL) {
|
||||
state4: /* XXX ??? - why isn't this before the "if" statement */
|
||||
#ifdef CONFIG_FEATURE_COMMAND_SAVEHISTORY
|
||||
if ( iflag )
|
||||
load_history ( ".ash_history" );
|
||||
#endif
|
||||
cmdloop(1);
|
||||
}
|
||||
#if PROFILE
|
||||
@@ -7546,6 +7550,11 @@ static int exitcmd(int argc, char **argv)
|
||||
{
|
||||
if (stoppedjobs())
|
||||
return 0;
|
||||
#ifdef CONFIG_FEATURE_COMMAND_SAVEHISTORY
|
||||
if ( iflag )
|
||||
save_history ( ".ash_history" );
|
||||
#endif
|
||||
|
||||
if (argc > 1)
|
||||
exitstatus = number(argv[1]);
|
||||
else
|
||||
|
Reference in New Issue
Block a user