IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9405


Ignore:
Timestamp:
Oct 8, 2006, 10:48:23 AM (20 years ago)
Author:
eugene
Message:

not loading pclient history

Location:
trunk/Ohana/src/opihi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/startup.c

    r9195 r9405  
    5757
    5858    opihi_history = get_variable ("HISTORY");
    59     f = fopen (opihi_history, "a");
    60     if (f == NULL) /* no current history file here */
    61       gprint (GP_ERR, "can't save history.\n");
    62     else
    63       fclose (f);
    64     stifle_history (200);
    65     read_history (opihi_history);
     59    if (opihi_history && *opihi_history) {
     60      f = fopen (opihi_history, "a");
     61      if (f == NULL) /* no current history file here */
     62        gprint (GP_ERR, "can't save history.\n");
     63      else
     64        fclose (f);
     65      stifle_history (200);
     66      read_history (opihi_history);
     67    }
    6668  }
    6769
  • trunk/Ohana/src/opihi/pclient/pclient.c

    r8179 r9405  
    44# define opihi_prompt "pclient: "
    55# define opihi_description "pcontrol client shell\n"
    6 # define opihi_history ".pclient"
     6# define opihi_history ""
    77# define opihi_rcfile ".pcontrolrc"
    88
Note: See TracChangeset for help on using the changeset viewer.