mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Disable SHOPT_KIA (ksh -R) by default
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.
This commit is contained in:
parent
0a9c6fd771
commit
d2cc520883
5 changed files with 5 additions and 18 deletions
|
@ -117,7 +117,9 @@ int sh_argopts(int argc,register char *argv[], void *context)
|
|||
Shell_t *shp = (Shell_t*)context;
|
||||
register int n,o;
|
||||
register Arg_t *ap = (Arg_t*)(shp->arg_context);
|
||||
#if SHOPT_KIA
|
||||
Lex_t *lp = (Lex_t*)(shp->lex_context);
|
||||
#endif
|
||||
Shopt_t newflags;
|
||||
int setflag=0, action=0, trace=(int)sh_isoption(SH_XTRACE);
|
||||
Namval_t *np = NIL(Namval_t*);
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
#include "shlex.h"
|
||||
#include "history.h"
|
||||
#include "builtins.h"
|
||||
#include "path.h"
|
||||
#include "test.h"
|
||||
#include "history.h"
|
||||
#include "version.h"
|
||||
|
@ -93,7 +94,6 @@ static struct argnod *label_last;
|
|||
#define getnode(type) ((Shnode_t*)stakalloc(sizeof(struct type)))
|
||||
|
||||
#if SHOPT_KIA
|
||||
#include "path.h"
|
||||
/*
|
||||
* write out entities for each item in the list
|
||||
* type=='V' for variable assignment lists
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue