Changeset 9405
- Timestamp:
- Oct 8, 2006, 10:48:23 AM (20 years ago)
- Location:
- trunk/Ohana/src/opihi
- Files:
-
- 2 edited
-
lib.shell/startup.c (modified) (1 diff)
-
pclient/pclient.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/startup.c
r9195 r9405 57 57 58 58 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 } 66 68 } 67 69 -
trunk/Ohana/src/opihi/pclient/pclient.c
r8179 r9405 4 4 # define opihi_prompt "pclient: " 5 5 # define opihi_description "pcontrol client shell\n" 6 # define opihi_history " .pclient"6 # define opihi_history "" 7 7 # define opihi_rcfile ".pcontrolrc" 8 8
Note:
See TracChangeset
for help on using the changeset viewer.
