Changeset 9405 for trunk/Ohana/src/opihi/lib.shell/startup.c
- Timestamp:
- Oct 8, 2006, 10:48:23 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/startup.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
Note:
See TracChangeset
for help on using the changeset viewer.
