Changeset 42919
- Timestamp:
- Sep 2, 2025, 10:09:16 AM (11 months ago)
- Location:
- trunk/Ohana/src/opihi
- Files:
-
- 4 edited
-
lib.shell/opihi.c (modified) (3 diffs)
-
pclient/pclient.c.in (modified) (1 diff)
-
pcontrol/JobOps.c (modified) (1 diff)
-
pcontrol/pcontrol.c.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/opihi.c
r40652 r42919 4 4 int opihi (int argc, char **argv) { 5 5 6 int Nbad;7 6 char *line, *prompt, *history; 8 7 pid_t ppid; … … 15 14 welcome (); 16 15 17 Nbad = 0; 16 // if HISTORY is defined, and does not have the value NONE, save history 17 int SaveHistory = TRUE; 18 if (!history || !strcasecmp(history, "none")) { SaveHistory = FALSE; } 19 20 int Nbad = 0; 18 21 while (1) { /** must exit with command "exit" or "quit" */ 19 22 if (Nbad == 10) exit (20); … … 40 43 if (*line) { 41 44 multicommand (line); 42 add_history (line);45 if (SaveHistory) { add_history (line); } 43 46 44 47 // the libedit version of readline does not support an incremental write to history file 45 48 # ifdef RL_READLINE_VERSION 46 if ( history != NULL) append_history (1, history);49 if (SaveHistory) { append_history (1, history); } 47 50 # endif 48 51 -
trunk/Ohana/src/opihi/pclient/pclient.c.in
r39457 r42919 4 4 # define opihi_prompt "pclient: " 5 5 # define opihi_description "pcontrol client shell\n" 6 # define opihi_history " "6 # define opihi_history "NONE" 7 7 # define opihi_rcfile ".pcontrolrc" 8 8 -
trunk/Ohana/src/opihi/pcontrol/JobOps.c
r39457 r42919 270 270 271 271 FREE (job[0].hostname); 272 FREE (job[0].realhost); 272 273 for (i = 0; i < job[0].argc; i++) { 273 274 FREE (job[0].argv[i]); -
trunk/Ohana/src/opihi/pcontrol/pcontrol.c.in
r42389 r42919 6 6 # define opihi_prompt "pcontrol: " 7 7 # define opihi_description "pcontrol client shell\n" 8 # define opihi_history " .pcontrol"8 # define opihi_history "NONE" 9 9 # define opihi_rcfile ".pcontrolrc" 10 10
Note:
See TracChangeset
for help on using the changeset viewer.
