1N/A/*********************************************************************** 1N/A* This software is part of the ast package * 1N/A* Copyright (c) 1982-2011 AT&T Intellectual Property * 1N/A* and is licensed under the * 1N/A* Common Public License, Version 1.0 * 1N/A* by AT&T Intellectual Property * 1N/A* A copy of the License is available at * 1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 1N/A* Information and Software Systems Research * 1N/A* David Korn <dgk@research.att.com> * 1N/A***********************************************************************/ 1N/A * bash specific extensions 1N/A * originally provided by Karsten Fleischer 1N/A "[B?Enable brace group expansion. This option is only availabe in bash " 1N/A "compatibility mode. In ksh mode, brace group expansion is always on.]" 1N/A "[P?Do not follow symbolic links, use physical directory structure " 1N/A "instead. Only available in bash compatibility mode.]";
1N/A"[O]:?[shopt_option?\ashopt_option\a is one of the shell options accepted by " 1N/A "the \bshopt\b builtin. If \ashopt_option\a is present, \b-O\b sets " 1N/A "the value of that option; \b+O\b unsets it. If \ashopt_option\a is " 1N/A "not supplied, the names and values of the shell options accepted by " 1N/A "\bshopt\b are printed on the standard output. If the invocation " 1N/A "option is \b+O\b, the output is displayed in a format that may be " 1N/A "reused as input. Only available if invoked as \bbash\b.]" 1N/A"[01:init-file|rcfile]:[file?Execute commands from \afile\a instead of the " 1N/A "standard personal initialization file ~/.bashrc if the shell is " 1N/A "interactive. Only available if invoked as \bbash\b.]" 1N/A"[02:editing?For option compatibility with \bbash\b only. Ignored.]" 1N/A"[03:profile?Read either the system-wide startup file or any of the " 1N/A "personal initialization files. On by default for interactive " 1N/A "shells. Only available if invoked as \bbash\b.]" 1N/A"[04:posix?If invoked as \bbash\b, turn on POSIX compatibility. \bBash\b in " 1N/A "POSIX mode is not the same as \bksh\b.]" 1N/A"[05:version?Print version number and exit.]";
1N/A"+[-1c?\n@(#)$Id: shopt (AT&T Research) 2003-02-13 $\n]" 1N/A"[-author?Karsten Fleischer <K.Fleischer@omnium.de>]" 1N/A"[+NAME?shopt - set/unset variables controlling optional shell behavior]" 1N/A"[+DESCRIPTION?\bshopt\b sets or unsets variables controlling optional shell " 1N/A "behavior. With no options, or with the \b-p\b option, a list of all " 1N/A "settable options is displayed, with an indication of whether or not " 1N/A"[p?Causes output to be displayed in a form that may be reused as input.]" 1N/A"[s?Set each \aoptname\a.]" 1N/A"[u?Unset each \aoptname\a.]" 1N/A"[q?Suppress output (quiet mode). The return status indicates whether the " 1N/A "\aoptname\a is set or unset. If multiple \aoptname\a arguments are " 1N/A "given with \b-q\b, the return status is zero if all \aoptname\as are " 1N/A "enabled; non-zero otherwise.]" 1N/A"[o?Restricts the values of \aoptname\a to be those defined for the \b-o\b " 1N/A "option to the set builtin.]" 1N/A"[+?If either \b-s\b or \b-u\b is used with no \aoptname\a arguments, the " 1N/A "display is limited to those options which are set or unset.]" 1N/A"[+?\bshopt\b supports all bash options. Some settings do not have any effect " 1N/A "or are are always on and cannot be changed.]" 1N/A"[+?The value of \aoptname\a must be one of the following:]{" 1N/A "[+cdable_vars?If set, arguments to the \bcd\b command are " 1N/A "assumed to be names of variables whose values are to " 1N/A "be used if the usual \bcd\b proceeding fails.]" 1N/A "[+cdspell?Currently ignored.]" 1N/A "[+checkhash?Always on.]" 1N/A "[+checkwinsize?Currently ignored.]" 1N/A "[+cmdhist?Always on.]" 1N/A "[+dotglob?If set, include filenames beginning with a \b.\b " 1N/A "in the results of pathname expansion.]" 1N/A "[+execfail?Always on.]" 1N/A "[+expand_aliases?Always on.]" 1N/A "[+extglob?Enable extended pattern matching features.]" 1N/A "[+histappend?Always on.]" 1N/A "[+histreedit?If set and an edit mode is selected, the user " 1N/A "is given the opportunity to re-edit a failed history " 1N/A "[+histverify?If set and an edit mode is selected, the result " 1N/A "of a history substitution will not be executed " 1N/A "immediately but be placed in the edit buffer for " 1N/A "further modifications.]" 1N/A "[+hostcomplete?Currently ignored.]" 1N/A "[+huponexit?Currently ignored.]" 1N/A "[+interactive_comments?Always on.]" 1N/A "[+lithist?Always on.]" 1N/A "[+login_shell?This option is set if the shell is started as " 1N/A "a login shell. The value cannot be changed.]" 1N/A "[+mailwarn?Currently ignored.]" 1N/A "[+no_empty_cmd_completion?Always on.]" 1N/A "[+nocaseglob?Match filenames in a case-insensitive fashion " 1N/A "when performing filename expansion.]" 1N/A "[+nullglob?Allows filename patterns which match no files to " 1N/A "expand to a null string, rather than themselves.]" 1N/A "[+progcomp?Currently ignored.]" 1N/A "[+promptvars?Currently ignored.]" 1N/A "[+restricted_shell?This option is set if the shell is started " 1N/A "as a restricted shell. The value cannot be changed. " 1N/A "It is not reset during execution of startup files, " 1N/A "allowing the startup files to determine whether the " 1N/A "shell is restricted.]" 1N/A "[+shift_verbose?Currently ignored.]" 1N/A "[+sourcepath?If set, the \b.\b builtin uses the value of PATH " 1N/A "to find the directory containing the file supplied " 1N/A "[+xpg_echo?If set, the \becho\b and \bprint\b builtins " 1N/A "expand backslash-escape sequences.]" 1N/A "[+?The return status when listing options is zero if all \aoptnames\a " 1N/A "are enabled, non-zero otherwise. When setting or unsetting options, " 1N/A "the return status is zero unless an \aoptname\a is not a valid shell " 1N/A"[+SEE ALSO?\bset\b(1)]" 1N/A/* GLOBIGNORE discipline. Turn on SH_DOTGLOB on set, turn off on unset. */ 1N/A/* FUNCNAME discipline */ 1N/A /* bash silently returns with an error when FUNCNAME is set, 1N/A unsetting FUNCNAME is allowed */ 1N/A /* no args, -s => mask=current options, -u mask=~(current options) 1N/A else mask=all bits */ 1N/A/* mode = 0: init, called two times 1N/A before parsing shell args with SH_PREINIT state turned on 1N/A second time after sh_init() is through and with SH_PREINIT state turned off 1N/A /* termination code */ 1N/A {
/* pre-init stage */ 1N/A /* set up some variables needed for --version 1N/A * needs to go here because --version option is parsed before the init script. 1N/A /* rest of init stage */ 1N/A /* restrict BASH_ENV */ 1N/A /* open GLOBIGNORE node */ 1N/A /* set startup files */