Changeset 458 for trunk


Ignore:
Timestamp:
Aug 3, 2018, 10:40:31 AM (6 years ago)
Author:
alain
Message:

fix a bug in ksh.c, related to commands history handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/ksh/ksh.c

    r457 r458  
    322322        if( display_txt_processes( txt_id ) )
    323323        {
    324             printf("  error: illegal argument txt_id = %x\n", txt_id );
     324            printf("  error: illegal argument txt_id = %d\n", txt_id );
    325325        }
    326326    }
     
    947947                                        ptr = (ptr - 1) % LOG_DEPTH;
    948948                                        strcpy(buf, log_entries[ptr].buf);
    949                                         count = log_entries[ptr].count;
     949                                        count = log_entries[ptr].count - 1;
    950950
    951951                                        // display log command
Note: See TracChangeset for help on using the changeset viewer.