Program Name
Changes the program name in some user output.
- Declare program_name
-
Variable declaration
- Segment Source
-
129: /* The name this program was run with. */
130: char *program_name;
131:
- Revise usage message
- Notes
- Need a better way to indicate the invasive change
Segment Element
Argument modification
-
209: fprintf (stderr, _("Try `%s --help' for more information.\n"),
210: program_name);
Segment Element
Argument modification
- 214: Usage: %s [OPTION]... [FILE]...\n\
215: "),
216: program_name);
- Revise disorder message
-
Argument modification
- Notes
- Need a better way to indicate the invasive change
- Segment Source
-
1505: fprintf (stderr, _("%s: disorder on %s\n"), program_name, files[i]);
- Initialize program_name
-
Code insertion
- Segment Source
- 1728: program_name = argv[0];