Changeset 28003 for branches/pap/Ohana/src/opihi/lib.shell/command.c
- Timestamp:
- May 18, 2010, 12:49:05 PM (16 years ago)
- Location:
- branches/pap
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/pap/Ohana/src/opihi/lib.shell/command.c
r27255 r28003 2 2 # define DEBUG 0 3 3 4 static int VERBOSE_SHELL = FALSE;4 static int VERBOSE_SHELL = OPIHI_VERBOSE_OFF; 5 5 6 6 int command (char *line, char **outline, int VERBOSE) { … … 10 10 Command *cmd; 11 11 12 rawline = NULL;13 //rawline = strcreate (line);12 // rawline = NULL; 13 rawline = strcreate (line); 14 14 15 15 /* force a space between ! and first word: !ls becomes ! ls */ … … 24 24 /* expand anything of the form fred[N] */ 25 25 line = expand_vectors (line); /* line is freed here, new one allocated */ 26 27 // print the line with the variables and vectors expanded, but before evaluating 28 // any in-line math expression 29 if (VERBOSE_SHELL == OPIHI_VERBOSE_ON) gprint (GP_ERR, "opihi: %s\n", line); 30 26 31 /* solve math expresions, assign variable, if needed */ 27 32 line = parse (line); /* line is freed here, new one allocated */ … … 31 36 *outline = line; 32 37 33 if (VERBOSE_SHELL) gprint (GP_ERR, "opihi: %s\n", line);34 35 38 argv = parse_commands (line, &argc); 36 39 if (argc == 0) { … … 60 63 msg = get_variable_ptr ("ERRORMSG"); 61 64 if (msg != (char *) NULL) gprint (GP_ERR, "%s\n", msg); 62 if (VERBOSE_SHELL ) gprint (GP_ERR, "error on line: %s\n", rawline);65 if (VERBOSE_SHELL != OPIHI_VERBOSE_OFF) gprint (GP_ERR, "error on line: %s\n", rawline); 63 66 } 64 67
Note:
See TracChangeset
for help on using the changeset viewer.
