option.list revision 1.1
11.1Skre/* $NetBSD: option.list,v 1.1 2017/05/28 00:38:01 kre Exp $ */
21.1Skre
31.1Skre/*
41.1Skre * define the shell's settable options
51.1Skre */
61.1Skre
71.1Skre/*
81.1Skre * format is up to 5 columns... (followed by anything)
91.1Skre * end of line comments can be introduced by ' #' (space/tab hash) to eol.
101.1Skre * proprocessor directoves can be (kind of) interspersed as required
111.1Skre *
121.1Skre * The columns are:
131.1Skre *	1. internal shell "var name"	(required)
141.1Skre *	2. option long name
151.1Skre *		if a single char, then no long name, and remaining
161.1Skre *		columns shift left (this becomes the short name)
171.1Skre *	3. option short name (single character name)
181.1Skre *		if '-' or absent then no short name
191.1Skre *		if neither long nor short name, line is ignored
201.1Skre *	4. option set short name (name of option equiv class)
211.1Skre *		if '-' or absent then no class
221.1Skre *	5. efault value of option
231.1Skre *		if absent, default is 0
241.1Skre *		only 0 or 1 possible (0==off 1==on)
251.1Skre */
261.1Skre
271.1Skre/*
281.1Skre * The order of the lines below gives the order they are listed by set -o
291.1Skre * Options labelled '[U]' are not (yet, maybe ever) implemented.
301.1Skre */
311.1Skreaflag	allexport	a		# export all variables
321.1Skrecdprint	cdprint				# always print result of a cd
331.1SkreEflag	emacs		E V		# enable emacs style editing
341.1Skreeflag	errexit		e		# exit on command error ($? != 0)
351.1Skreusefork	fork		F		# use fork(2) instead of vfork(2)
361.1SkreIflag	ignoreeof	I		# do not exit interactive shell on EOF
371.1Skreiflag	interactive	i		# interactive shell
381.1Skremflag	monitor		m		# enable job control
391.1SkreCflag	noclobber	C		# do not overwrite files when using >
401.1Skrenflag	noexec		n		# do not execue commands
411.1Skrefflag	noglob		f		# no pathname expansion
421.1Skrenolog	nolog				# [U] no func definitions in history
431.1Skrepflag	nopriv		p		# preserve privs if set[ug]id
441.1Skrebflag	notify		b		# [U] report bg job completion
451.1Skreuflag	nounset		u		# expanding unset var is an error
461.1Skreposix	posix				# be closer to POSIX compat
471.1Skreqflag	quietprofile	q		# disable -v/-x in startup files
481.1Skresflag	stdin		s		# read from standard input
491.1Skretabcomplete	tabcomplete		# make <tab> cause filename expansion
501.1Skrehflag	trackall	h		# [U] locate cmds in funcs during defn
511.1Skrevflag	verbose		v		# echo commands as read
521.1SkreVflag	vi		V V		# enable vi style editing
531.1Skrexflag	xtrace		x		# trace command execution
541.1Skre
551.1Skre#ifdef DEBUG
561.1Skredebug	debug				# enable internal shell debugging
571.1Skre#endif
58