048a33f757eb0b86ea13cd948c67923264ab18bd
* Copyright (c) 1991 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* %sccs.include.redist.c%
* @(#)options.h 5.1 (Berkeley) %G%
int nparam
; /* number of positional parameters (without $0) */
char malloc
; /* true if parameter list dynamicly allocated */
char **p
; /* parameter list */
char **optnext
; /* next parameter to be processed by getopts */
char *optptr
; /* used by getopts */
const char optchar
[NOPTS
+1] = "efIijnsxzv"; /* shell flags */
char optval
[NOPTS
+1]; /* values of option flags */
extern const char optchar
[NOPTS
+1];
extern char optval
[NOPTS
+1];
extern char *minusc
; /* argument to -c option */
extern char *arg0
; /* $0 */
extern struct shparam shellparam
; /* $@ */
extern char **argptr
; /* argument list for builtin commands */
extern char *optarg
; /* set by nextopt */
extern char *optptr
; /* used by nextopt */
void procargs(int, char **);
void freeparam(struct shparam
*);