Changeset 7917 for trunk/Ohana/src/opihi/lib.shell/CommandOps.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/CommandOps.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/CommandOps.c
r4583 r7917 33 33 } 34 34 if (Nc == -1) { 35 fprintf (stderr, "programming error: command not found\n");35 gprint (GP_ERR, "programming error: command not found\n"); 36 36 return (FALSE); 37 37 } … … 57 57 } 58 58 if (EXACT) { 59 if (VERBOSE) fprintf (stderr, "no exact match to %s\n", name);59 if (VERBOSE) gprint (GP_ERR, "no exact match to %s\n", name); 60 60 return (NULL); 61 61 } … … 73 73 if (Nmatch > 1) { 74 74 if (VERBOSE) { 75 fprintf (stderr, "ambiguous command: %s ( ", name);75 gprint (GP_ERR, "ambiguous command: %s ( ", name); 76 76 for (i = 0; i < Nmatch; i++) { 77 fprintf (stderr, "%s ", commands[match[i]].name);77 gprint (GP_ERR, "%s ", commands[match[i]].name); 78 78 } 79 fprintf (stderr, ")\n");79 gprint (GP_ERR, ")\n"); 80 80 } 81 81 return (NULL); 82 82 } 83 if (VERBOSE) fprintf (stderr, "%s: Command not found.\n", name);83 if (VERBOSE) gprint (GP_ERR, "%s: Command not found.\n", name); 84 84 return (NULL); 85 85 }
Note:
See TracChangeset
for help on using the changeset viewer.
