From 25e363df2b5d32c9dca23d807060492206978fc3 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 3 Sep 2002 09:33:35 +0000 Subject: 17602, 17603: Rationalise option handling, in particular for cd, pushd, popd. --- Src/zsh.h | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'Src/zsh.h') diff --git a/Src/zsh.h b/Src/zsh.h index 4cb87e085..62136719a 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1002,15 +1002,19 @@ struct builtin { #define BINF_PLUSOPTS (1<<1) /* +xyz legal */ #define BINF_PRINTOPTS (1<<2) #define BINF_ADDED (1<<3) /* is in the builtins hash table */ -#define BINF_ECHOPTS (1<<4) -#define BINF_MAGICEQUALS (1<<5) /* needs automatic MAGIC_EQUAL_SUBST substitution */ -#define BINF_PREFIX (1<<6) -#define BINF_DASH (1<<7) -#define BINF_BUILTIN (1<<8) -#define BINF_COMMAND (1<<9) -#define BINF_EXEC (1<<10) -#define BINF_NOGLOB (1<<11) -#define BINF_PSPECIAL (1<<12) +#define BINF_MAGICEQUALS (1<<4) /* needs automatic MAGIC_EQUAL_SUBST substitution */ +#define BINF_PREFIX (1<<5) +#define BINF_DASH (1<<6) +#define BINF_BUILTIN (1<<7) +#define BINF_COMMAND (1<<8) +#define BINF_EXEC (1<<9) +#define BINF_NOGLOB (1<<10) +#define BINF_PSPECIAL (1<<11) +/* Builtin option handling */ +#define BINF_SKIPINVALID (1<<12) /* Treat invalid option as argument */ +#define BINF_KEEPNUM (1<<13) /* `[-+]NUM' can be an option */ +#define BINF_SKIPDASH (1<<14) /* Treat `-' as argument (maybe `+') */ +#define BINF_DASHDASHVALID (1<<15) /* Handle `--' evenf if SKIPINVALD */ struct module { char *nam; -- cgit 1.4.1