option.list revision 1.1
1/* $NetBSD: option.list,v 1.1 2017/05/28 00:38:01 kre Exp $ */
2
3/*
4 * define the shell's settable options
5 */
6
7/*
8 * format is up to 5 columns... (followed by anything)
9 * end of line comments can be introduced by ' #' (space/tab hash) to eol.
10 * proprocessor directoves can be (kind of) interspersed as required
11 *
12 * The columns are:
13 *	1. internal shell "var name"	(required)
14 *	2. option long name
15 *		if a single char, then no long name, and remaining
16 *		columns shift left (this becomes the short name)
17 *	3. option short name (single character name)
18 *		if '-' or absent then no short name
19 *		if neither long nor short name, line is ignored
20 *	4. option set short name (name of option equiv class)
21 *		if '-' or absent then no class
22 *	5. efault value of option
23 *		if absent, default is 0
24 *		only 0 or 1 possible (0==off 1==on)
25 */
26
27/*
28 * The order of the lines below gives the order they are listed by set -o
29 * Options labelled '[U]' are not (yet, maybe ever) implemented.
30 */
31aflag	allexport	a		# export all variables
32cdprint	cdprint				# always print result of a cd
33Eflag	emacs		E V		# enable emacs style editing
34eflag	errexit		e		# exit on command error ($? != 0)
35usefork	fork		F		# use fork(2) instead of vfork(2)
36Iflag	ignoreeof	I		# do not exit interactive shell on EOF
37iflag	interactive	i		# interactive shell
38mflag	monitor		m		# enable job control
39Cflag	noclobber	C		# do not overwrite files when using >
40nflag	noexec		n		# do not execue commands
41fflag	noglob		f		# no pathname expansion
42nolog	nolog				# [U] no func definitions in history
43pflag	nopriv		p		# preserve privs if set[ug]id
44bflag	notify		b		# [U] report bg job completion
45uflag	nounset		u		# expanding unset var is an error
46posix	posix				# be closer to POSIX compat
47qflag	quietprofile	q		# disable -v/-x in startup files
48sflag	stdin		s		# read from standard input
49tabcomplete	tabcomplete		# make <tab> cause filename expansion
50hflag	trackall	h		# [U] locate cmds in funcs during defn
51vflag	verbose		v		# echo commands as read
52Vflag	vi		V V		# enable vi style editing
53xflag	xtrace		x		# trace command execution
54
55#ifdef DEBUG
56debug	debug				# enable internal shell debugging
57#endif
58