SCCS-vsn: usr.bin/more/command.c 5.3
SCCS-vsn: usr.bin/more/main.c 5.3
-static char sccsid[] = "@(#)command.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)command.c 5.3 (Berkeley) %G%";
extern char *every_first_cmd;
extern char version[];
extern char *current_file;
extern char *every_first_cmd;
extern char version[];
extern char *current_file;
extern int screen_trashed; /* The screen has been overwritten */
static char cmdbuf[120]; /* Buffer for holding a multi-char command */
extern int screen_trashed; /* The screen has been overwritten */
static char cmdbuf[120]; /* Buffer for holding a multi-char command */
/*
* Invoke an editor on the input file.
*/
/*
* Invoke an editor on the input file.
*/
if (ispipe)
{
error("Cannot edit standard input");
if (ispipe)
{
error("Cannot edit standard input");
ch_init(0, 0);
clr_linenum();
break;
ch_init(0, 0);
clr_linenum();
break;
-#else
- error("Command not available");
- break;
-#endif
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)main.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c 5.3 (Berkeley) %G%";
public char * namelogfile = NULL;
#endif
public char * namelogfile = NULL;
#endif
#if TAGS
extern char * tagfile;
#if TAGS
extern char * tagfile;
extern int tagoption;
#endif
extern int tagoption;
#endif
/*
* Edit a new file.
* Filename "-" means standard input.
/*
* Edit a new file.
* Filename "-" means standard input.
argv[0][1] != '\0')
scan_option(*argv++);
argv[0][1] != '\0')
scan_option(*argv++);
editor = getenv("EDITOR");
if (editor == NULL || *editor == '\0')
editor = EDIT_PGM;
editor = getenv("EDITOR");
if (editor == NULL || *editor == '\0')
editor = EDIT_PGM;
/*
* Set up list of files to be examined.
/*
* Set up list of files to be examined.