mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-24 15:04:13 +00:00
SHOPT_KIA enables the -R option that generates a cross-reference database from a script. However, no tool to analyse this database is shipped or seems to be available anywhere (in spite of multiple people looking for one), and the format is very opaque. No usage examples are known or findable on the internet. This seems like it should not be compiled in by default, although we'll keep the code in case some way to use it is found. src/cmd/ksh93/SHOPT.sh: - Disable SHOPT_KIA by default by removing the default 1 value. src/cmd/ksh93/sh/args.c, src/cmd/ksh93/sh/parse.c: - Fix a couple of preprocessor logic bugs that made it impossible to compile ksh without SHOPT_KIA. src/cmd/ksh93/data/builtins.c: - Fix typo in -R doc in ksh --man (in case SHOPT_KIA is enabled). src/cmd/ksh93/sh.1: - Since sh.1 is not generated dynamically, remove the -R doc.
40 lines
2 KiB
Bash
40 lines
2 KiB
Bash
#
|
|
# Compile-time SHOPT_* options for ksh93.
|
|
# 1 to enable, 0 to disable, empty value to probe.
|
|
#
|
|
|
|
SHOPT 2DMATCH=1 # two dimensional ${.sh.match} for ${var//pat/str}
|
|
SHOPT ACCT= # accounting
|
|
SHOPT ACCTFILE= # per-user accounting info
|
|
SHOPT AUDIT=1 # enable auditing per SHOPT_AUDITFILE
|
|
SHOPT AUDITFILE='\"/etc/ksh_audit\"' # auditing file
|
|
SHOPT BGX=1 # one SIGCHLD trap per completed job
|
|
SHOPT BRACEPAT=1 # C-shell {...,...} expansions (, required)
|
|
SHOPT CMDLIB_HDR= # '<cmdlist.h>' # custom -lcmd list for path-bound builtins
|
|
SHOPT CMDLIB_DIR= # '\"/opt/ast/bin\"' # virtual directory prefix for path-bound builtins
|
|
SHOPT CRNL= # accept MS Windows newlines (<cr><nl>) for <nl>
|
|
SHOPT DYNAMIC=1 # dynamic loading for builtins
|
|
SHOPT ECHOPRINT= # make echo equivalent to print
|
|
SHOPT EDPREDICT=1 # predictive editing
|
|
SHOPT ESH=1 # emacs/gmacs edit mode
|
|
SHOPT FILESCAN=1 # fast file scan
|
|
SHOPT FIXEDARRAY=1 # fixed dimension indexed array
|
|
SHOPT HISTEXPAND=1 # csh-style history file expansions
|
|
SHOPT KIA= # ksh -R <outfile> <script> generates cross-ref database from script
|
|
SHOPT MULTIBYTE=1 # multibyte character handling
|
|
SHOPT NAMESPACE=1 # allow namespaces
|
|
SHOPT OLDTERMIO= # support both TCGETA and TCGETS
|
|
SHOPT OPTIMIZE=1 # optimize loop invariants
|
|
SHOPT PFSH=0 # solaris exec_attr(4) profile execution (obsolete)
|
|
SHOPT P_SUID= # real uid's that require -p for set[ug]id
|
|
SHOPT RAWONLY=1 # make viraw the only vi mode
|
|
SHOPT REGRESS= # enable __regress__ builtin and instrumented intercepts for testing
|
|
SHOPT REMOTE= # enable --rc if running as a remote shell
|
|
SHOPT SEVENBIT= # strip the eighth bit from characters
|
|
SHOPT SPAWN= # use spawnveg for fork/exec
|
|
SHOPT STATS=1 # add .sh.stats variable
|
|
SHOPT SUID_EXEC=1 # allow (safe) suid/sgid shell scripts
|
|
SHOPT SYSRC= # attempt . /etc/ksh.kshrc if interactive
|
|
SHOPT TIMEOUT= # number of seconds for shell timeout
|
|
SHOPT TYPEDEF=1 # enable typeset type definitions
|
|
SHOPT VSH=1 # vi edit mode
|