-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.h
801 lines (552 loc) · 19.4 KB
/
globals.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
/*
* $Id: globals.h,v 2.44 1996/10/15 20:16:35 hzoli Exp $
*
* globals.h - global variables for zsh
*
* This file is part of zsh, the Z shell.
*
* Copyright (c) 1992-1996 Paul Falstad
* All rights reserved.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and to distribute modified versions of this software for any
* purpose, provided that the above copyright notice and the following
* two paragraphs appear in all copies of this software.
*
* In no event shall Paul Falstad or the Zsh Development Group be liable
* to any party for direct, indirect, special, incidental, or consequential
* damages arising out of the use of this software and its documentation,
* even if Paul Falstad and the Zsh Development Group have been advised of
* the possibility of such damage.
*
* Paul Falstad and the Zsh Development Group specifically disclaim any
* warranties, including, but not limited to, the implied warranties of
* merchantability and fitness for a particular purpose. The software
* provided hereunder is on an "as is" basis, and Paul Falstad and the
* Zsh Development Group have no obligation to provide maintenance,
* support, updates, enhancements, or modifications.
*
*/
/* GLOBALS is defined is init.c, so the global variables *
* are actually contained in init.c, and are externs in *
* the other source files. */
#ifdef GLOBALS
# define EXTERN
#else
# define EXTERN extern
#endif
#ifdef GLOBALS
int redirtab[TRINANG - OUTANG + 1] =
{
WRITE,
WRITENOW,
APP,
APPNOW,
READ,
READWRITE,
HEREDOC,
HEREDOCDASH,
MERGEIN,
MERGEOUT,
ERRWRITE,
ERRWRITENOW,
ERRAPP,
ERRAPPNOW,
HERESTR,
};
#else
extern int redirtab[TRINANG - OUTANG + 1];
#endif
#ifdef GLOBALS
char nulstring[] = {Nularg, '\0'};
int nulstrlen = sizeof(nulstring) - 1;
#else
extern char nulstring[];
extern int nulstrlen;
#endif
/* NULL-terminated arrays containing path, cdpath, etc. */
EXTERN char **path; /* $path */
EXTERN char **cdpath; /* $cdpath */
EXTERN char **fpath; /* $fpath */
EXTERN char **watch; /* $watch */
EXTERN char **mailpath; /* $mailpath */
EXTERN char **manpath; /* $manpath */
EXTERN char **fignore; /* $fignore */
EXTERN char **psvar; /* $psvar */
EXTERN char **screendata; /* $FB_SCRDATA */
EXTERN char *yytext;
/* used to suppress ERREXIT and *
* trapping of SIGZERR, SIGEXIT. */
EXTERN int noerrexit;
/* do not save history on exec and exit */
EXTERN int nohistsave;
/* error/break flag */
EXTERN int errflag;
/* Status of return from a trap */
EXTERN int trapreturn;
EXTERN char *tokstr;
EXTERN int tok, tokfd;
/* lexical analyzer error flag */
EXTERN int lexstop;
EXTERN struct heredocs *hdocs;
/* suppress error messages */
EXTERN int noerrs;
/* nonzero means we are not evaluating, just parsing (in math.c) */
EXTERN int noeval;
/* current history event number */
EXTERN int curhist;
/* if != 0, we are expanding the current line */
EXTERN int expanding;
/* these are used to modify the cursor position during expansion */
EXTERN int excs, exlast;
/* if != 0, this is the first line of the command */
EXTERN int isfirstln;
/* if != 0, this is the first char of the command (not including
white space) */
EXTERN int isfirstch;
/* number of history entries */
EXTERN int histentct;
/* array of history entries */
EXTERN Histent histentarr;
/* capacity of history lists */
EXTERN int histsiz;
/* if = 1, we have performed history substitution on the current line
if = 2, we have used the 'p' modifier */
EXTERN int histdone;
/* default event (usually curhist-1, that is, "!!") */
EXTERN int defev;
/* != 0 if we are about to read a command word */
EXTERN int incmdpos;
/* != 0 if we are in the middle of a [[ ... ]] */
EXTERN int incond;
/* != 0 if we are after a redirection (for ctxtlex only) */
EXTERN int inredir;
/* != 0 if we are about to read a case pattern */
EXTERN int incasepat;
/* != 0 if we just read FUNCTION */
EXTERN int infunc;
/* != 0 if we just read a newline */
EXTERN int isnewlin;
/* the lists of history events */
EXTERN LinkList histlist;
/* the directory stack */
EXTERN LinkList dirstack;
/* the zle buffer stack */
EXTERN LinkList bufstack;
/* total # of characters waiting to be read. */
EXTERN int inbufct;
/* the flags controlling the input routines in input.c: see INP_* in zsh.h */
EXTERN int inbufflags;
/* flag that an alias should be expanded after expansion ending in space */
EXTERN int inalmore;
/* != 0 if this is a subshell */
EXTERN int subsh;
/* # of break levels */
EXTERN int breaks;
/* != 0 if we have a return pending */
EXTERN int retflag;
/* how far we've hashed the PATH so far */
EXTERN char **pathchecked;
/* # of nested loops we are in */
EXTERN int loops;
/* # of continue levels */
EXTERN int contflag;
/* the job we are working on */
EXTERN int thisjob;
/* the current job (+) */
EXTERN int curjob;
/* the previous job (-) */
EXTERN int prevjob;
/* hash table containing the aliases */
EXTERN HashTable aliastab;
/* hash table containing the reserved words */
EXTERN HashTable reswdtab;
/* hash table containing the parameters */
EXTERN HashTable paramtab;
/* hash table containing the external/hashed commands */
EXTERN HashTable cmdnamtab;
/* hash table containing the shell functions */
EXTERN HashTable shfunctab;
/* hash table containing builtin commands */
EXTERN HashTable builtintab;
/* hash table for completion info for commands */
EXTERN HashTable compctltab;
/* hash table for multi-character bindings */
EXTERN HashTable keybindtab;
/* hash table for emacs multi-character bindings */
EXTERN HashTable emkeybindtab;
/* hash table for vi multi-character bindings */
EXTERN HashTable vikeybindtab;
/* hash table for named directories */
EXTERN HashTable nameddirtab;
/* default completion infos */
EXTERN struct compctl cc_compos, cc_default, cc_first, cc_dummy;
/* the job table */
EXTERN struct job jobtab[MAXJOB];
/* shell timings */
EXTERN struct tms shtms;
/* the list of sched jobs pending */
EXTERN struct schedcmd *schedcmds;
/* the last l for s/l/r/ history substitution */
EXTERN char *hsubl;
/* the last r for s/l/r/ history substitution */
EXTERN char *hsubr;
/* We cache `USERNAME' and use check cached_uid *
* so we know when to recompute it. */
EXTERN uid_t cached_uid;
EXTERN char *cached_username; /* $USERNAME */
EXTERN char *zsh_name; /* ZSH_NAME */
EXTERN char *underscore; /* $_ */
EXTERN long lastval; /* $? */
EXTERN long mypid; /* $$ */
EXTERN long lastpid; /* $! */
EXTERN long ppid; /* $PPID */
EXTERN char *ifs; /* $IFS */
EXTERN char *pwd; /* $PWD */
EXTERN char *oldpwd; /* $OLDPWD */
EXTERN long columns; /* $COLUMNS */
EXTERN long lines; /* $LINES */
EXTERN char *zoptarg; /* $OPTARG */
EXTERN long zoptind; /* $OPTIND */
EXTERN char *prompt; /* $PROMPT */
EXTERN char *prompt2; /* etc. */
EXTERN char *prompt3;
EXTERN char *prompt4;
EXTERN char *rprompt; /* $RPROMPT */
EXTERN char *sprompt;
EXTERN char *wordchars;
EXTERN char *rstring, *Rstring;
EXTERN char *postedit;
EXTERN char *hostnam; /* from gethostname */
EXTERN char *home; /* $HOME */
EXTERN char **pparams; /* $argv */
EXTERN pid_t mypgrp; /* the process group of the shell */
EXTERN char *argzero; /* $0 */
EXTERN char *hackzero;
EXTERN char *scriptname; /* name of script being sourced */
EXTERN long lineno; /* $LINENO */
EXTERN long shlvl; /* $SHLVL */
EXTERN long lastval2;
/* the last time we checked mail */
EXTERN time_t lastmailcheck;
/* the last time we checked the people in the WATCH variable */
EXTERN time_t lastwatch;
/* the last time we did the periodic() shell function */
EXTERN time_t lastperiodic;
/* $SECONDS = time(NULL) - shtimer.tv_sec */
EXTERN struct timeval shtimer;
/* the default command for null commands */
EXTERN char *nullcmd;
EXTERN char *readnullcmd;
/* the List of local variables we have to destroy */
EXTERN LinkList locallist;
/* what level of localness we are at */
EXTERN int locallevel;
/* what level of sourcing we are at */
EXTERN int sourcelevel;
/* The table of file descriptors. A table element is zero if the *
* corresponding fd is not used by the shell. It is greater than *
* 1 if the fd is used by a <(...) or >(...) substitution and 1 if *
* it is an internal file descriptor which must be closed before *
* executing an external command. The first ten elements of the *
* table is not used. A table element is set by movefd and cleard *
* by zclose. */
EXTERN char *fdtable;
/* The allocated size of fdtable */
EXTERN int fdtable_size;
/* The highest fd that marked with nonzero in fdtable */
EXTERN int max_zsh_fd;
/* input fd from the coprocess */
EXTERN int coprocin;
/* output fd from the coprocess */
EXTERN int coprocout;
/* the shell input fd */
EXTERN int SHIN;
/* the shell tty fd */
EXTERN int SHTTY;
/* the FILE attached to the shell tty */
EXTERN FILE *shout;
/* buffered shell input for non-interactive shells */
EXTERN FILE *bshin;
/* != 0 means we are reading input from a string */
EXTERN int strin;
/* != 0 means history substitution is turned off */
EXTERN int stophist;
/* this line began with a space, so junk it if HISTIGNORESPACE is on */
EXTERN int spaceflag;
/* don't do spelling correction */
EXTERN int nocorrect;
/* state of the history mechanism (see hist.c) */
EXTERN int histactive;
/* current emulation (used to decide which set of option letters is used) */
EXTERN int emulation;
/* the options; e.g. if opts[SHGLOB] != 0, SH_GLOB is turned on */
EXTERN char opts[OPT_SIZE];
EXTERN int lastbase; /* last input base we used */
#ifdef HAVE_GETRLIMIT
/* the resource limits for the shell and its children */
EXTERN struct rlimit current_limits[RLIM_NLIMITS];
EXTERN struct rlimit limits[RLIM_NLIMITS];
#endif
/* pointer into the history line */
EXTERN char *hptr;
/* the current history line */
EXTERN char *chline;
/* true if the last character returned by hgetc was an escaped bangchar
* if it is set and NOBANGHIST is unset hwaddc escapes bangchars */
EXTERN int qbang;
/* text attribute mask */
#ifdef GLOBALS
unsigned txtattrmask = 0;
#else
extern unsigned txtattrmask;
#endif
/* text change - attribute change made by prompts */
EXTERN unsigned txtchange;
EXTERN char *term; /* $TERM */
/* 0 if this $TERM setup is usable, otherwise it contains TERM_* flags */
EXTERN int termflags;
/* flag for CSHNULLGLOB */
EXTERN int badcshglob;
/* max size of histline */
EXTERN int hlinesz;
/* we have printed a 'you have stopped (running) jobs.' message */
EXTERN int stopmsg;
/* the default tty state */
EXTERN struct ttyinfo shttyinfo;
EXTERN char *ttystrname; /* $TTY */
/* 1 if ttyctl -f has been executed */
EXTERN int ttyfrozen;
/* != 0 if we are allocating in the heaplist */
EXTERN int useheap;
/* Words on the command line, for use in completion */
EXTERN int clwsize, clwnum, clwpos;
EXTERN char **clwords;
/* pid of process undergoing 'process substitution' */
EXTERN pid_t cmdoutpid;
/* exit status of process undergoing 'process substitution' */
EXTERN int cmdoutval;
/* Stack to save some variables before executing a signal handler function */
EXTERN struct execstack *exstack;
/* Array describing the state of each signal: an element contains *
* 0 for the default action or some ZSIG_* flags ored together. */
EXTERN int sigtrapped[VSIGCOUNT];
/* trap functions for each signal */
EXTERN List sigfuncs[VSIGCOUNT];
#ifdef DEBUG
EXTERN int alloc_stackp;
#endif
/* Variables used by signal queueing */
EXTERN int queueing_enabled;
EXTERN sigset_t signal_mask_queue[MAX_QUEUE_SIZE];
EXTERN int signal_queue[MAX_QUEUE_SIZE];
EXTERN int queue_front;
EXTERN int queue_rear;
/* 1 if aliases should not be expanded */
EXTERN int noaliases;
#ifdef GLOBALS
/* tokens */
char *ztokens = "#$^*()$=|{}[]`<>?~`,'\"\\";
#else
extern char *ztokens;
#endif
/* $histchars */
EXTERN unsigned char bangchar, hatchar, hashchar;
EXTERN int eofseen;
/* we are parsing a line sent to use by the editor */
EXTERN int zleparse;
EXTERN int wordbeg;
EXTERN int parbegin;
EXTERN int parend;
/* used in arrays of lists instead of NULL pointers */
EXTERN struct list dummy_list;
/* lengths of each string */
EXTERN int tclen[TC_COUNT];
EXTERN char *tcstr[TC_COUNT];
/* Values of the li and co entries */
EXTERN int tclines, tccolumns;
/* names of the strings we want */
#ifdef GLOBALS
char *tccapnams[TC_COUNT] =
{
"cl", "le", "LE", "nd", "RI", "up", "UP", "do",
"DO", "dc", "DC", "ic", "IC", "cd", "ce", "al", "dl", "ta",
"md", "so", "us", "me", "se", "ue"
};
#else
extern char *tccapnams[TC_COUNT];
#endif
/* the command stack for use with %_ in prompts */
EXTERN unsigned char *cmdstack;
EXTERN int cmdsp;
#ifdef GLOBALS
char *tokstrings[WHILE + 1] = {
NULL, /* NULLTOK 0 */
";", /* SEPER */
"\\n", /* NEWLIN */
";", /* SEMI */
";;", /* DSEMI */
"&", /* AMPER 5 */
"(", /* INPAR */
")", /* OUTPAR */
"||", /* DBAR */
"&&", /* DAMPER */
")", /* OUTANG 10 */
">|", /* OUTANGBANG */
">>", /* DOUTANG */
">>|", /* DOUTANGBANG */
"<", /* INANG */
"<>", /* INOUTANG 15 */
"<<", /* DINANG */
"<<-", /* DINANGDASH */
"<&", /* INANGAMP */
">&", /* OUTANGAMP */
"&>", /* AMPOUTANG 20 */
"&>|", /* OUTANGAMPBANG */
">>&", /* DOUTANGAMP */
">>&|", /* DOUTANGAMPBANG */
"<<<", /* TRINANG */
"|", /* BAR 25 */
"|&", /* BARAMP */
"()", /* INOUTPAR */
"((", /* DINPAR */
"))", /* DOUTPAR */
"&|", /* AMPERBANG 30 */
};
#else
extern char *tokstrings[];
#endif
#ifdef GLOBALS
char *cmdnames[] =
{
"for", "while", "repeat", "select",
"until", "if", "then", "else",
"elif", "math", "cond", "cmdor",
"cmdand", "pipe", "errpipe", "foreach",
"case", "function", "subsh", "cursh",
"array", "quote", "dquote", "bquote",
"cmdsubst", "mathsubst", "elif-then", "heredoc",
"heredocd", "brace", "braceparam",
};
#else
extern char *cmdnames[];
#endif
#ifndef GLOBALS
extern struct option optns[OPT_SIZE];
#else
struct option optns[OPT_SIZE] = {
# define x OPT_REV|
{NULL, 0, 0, 0},
{"allexport", 'a', 'a', 0},
{"alwayslastprompt", 0, 0, 0},
{"alwaystoend", 0, 0, 0},
{"appendhistory", 0, 0, 0},
{"autocd", 'J', 0, 0},
{"autolist", '9', 0, 0},
{"automenu", 0, 0, 0},
{"autonamedirs", 0, 0, 0},
{"autoparamkeys", 0, 0, 0},
{"autoparamslash", 0, 0, OPT_CSH},
{"autopushd", 'N', 0, 0},
{"autoremoveslash", 0, 0, 0},
{"autoresume", 'W', 0, 0},
{"badpattern", x'2', 0, OPT_EMULATE|OPT_NONBOURNE},
{"banghist", x'K', 0, OPT_EMULATE|OPT_NONBOURNE},
{"beep", x'B', 0, OPT_ALL},
{"bgnice", '6', 0, OPT_EMULATE|OPT_NONBOURNE},
{"braceccl", 0, 0, 0},
{"bsdecho", 0, 0, OPT_EMULATE|OPT_SH},
{"cdablevars", 'T', 0, 0},
{"chaselinks", 'w', 0, 0},
{"clobber", x'C', x'C', OPT_ALL},
{"completealiases", 0, 0, 0},
{"completeinword", 0, 0, 0},
{"correct", '0', 0, 0},
{"correctall", 'O', 0, 0},
{"create", x'C', x'C', OPT_ALL},
{"cshjunkiehistory", 0, 0, OPT_EMULATE|OPT_CSH},
{"cshjunkieloops", 0, 0, OPT_EMULATE|OPT_CSH},
{"cshjunkiequotes", 0, 0, OPT_EMULATE|OPT_CSH},
{"cshnullglob", 0, 0, OPT_EMULATE|OPT_CSH},
{"equals", 0, 0, OPT_EMULATE|OPT_ZSH},
{"errexit", 'e', 'e', 0},
{"exec", x'n', x'n', OPT_ALL},
{"extendedglob", 0, 0, 0},
{"extendedhistory", 0, 0, OPT_EMULATE|OPT_CSH},
{"flowcontrol", 0, 0, OPT_ALL},
{"functionargzero", 0, 0, OPT_EMULATE|OPT_NONBOURNE},
{"functionphargz", 0, 0, 0},
{"glob", x'F', x'f', OPT_ALL},
{"globassign", 0, 0, OPT_EMULATE|OPT_CSH},
{"globcomplete", 0, 0, 0},
{"globdots", '4', 0, 0},
{"globsubst", 0, 0, OPT_EMULATE|OPT_NONZSH},
{"hashcmds", 0, 0, OPT_ALL},
{"hashdirs", 0, 0, OPT_ALL},
{"hashlistall", 0, 0, OPT_ALL},
{"histallowclobber", 0, 0, 0},
{"histbeep", 0, 0, OPT_ALL},
{"histignoredups", 'h', 0, 0},
{"histignorespace", 'g', 0, 0},
{"histnostore", 0, 0, 0},
{"histverify", 0, 0, 0},
{"hup", 0, 0, OPT_EMULATE|OPT_ZSH},
{"ignorebraces", 'I', 0, OPT_EMULATE|OPT_SH},
{"ignoreeof", '7', 0, 0},
{"interactive", 'i', 'i', OPT_SPECIAL},
{"interactivecomments", 'k', 0, OPT_EMULATE|OPT_BOURNE},
{"ksharrays", 0, 0, OPT_EMULATE|OPT_BOURNE},
{"kshoptionprint", 0, 0, OPT_EMULATE|OPT_KSH},
{"listambiguous", 0, 0, 0},
{"listbeep", 0, 0, OPT_ALL},
{"listtypes", 'X', 0, OPT_CSH},
{"localoptions", 0, 0, OPT_EMULATE|OPT_KSH},
{"login", 'l', 'l', OPT_SPECIAL},
{"longlistjobs", 'R', 0, 0},
{"magicequalsubst", 0, 0, 0},
{"mailwarning", 'U', 0, 0},
{"markdirs", '8', 'X', 0},
{"menucomplete", 'Y', 0, 0},
{"monitor", 'm', 'm', OPT_SPECIAL},
{"multios", 0, 0, OPT_EMULATE|OPT_ZSH},
{"nomatch", x'3', 0, OPT_EMULATE|OPT_NONBOURNE},
{"notify", '5', 'b', OPT_ZSH},
{"nullglob", 'G', 0, OPT_EMULATE},
{"numericglobsort", 0, 0, 0},
{"overstrike", 0, 0, 0},
{"pathdirs", 'Q', 0, 0},
{"posixbuiltins", 0, 0, OPT_EMULATE|OPT_BOURNE},
{"printexitvalue", '1', 0, 0},
{"privileged", 'p', 'p', OPT_SPECIAL},
{"promptcr", x'V', 0, OPT_ALL},
{"promptsubst", 0, 0, OPT_EMULATE|OPT_KSH},
{"pushdignoredups", 0, 0, 0},
{"pushdminus", 0, 0, 0},
{"pushdsilent", 'E', 0, 0},
{"pushdtohome", 'D', 0, 0},
{"rcexpandparam", 'P', 0, 0},
{"rcquotes", 0, 0, 0},
{"rcs", x'f', 0, OPT_ALL},
{"recexact", 'S', 0, 0},
{"rmstarsilent", 'H', 0, OPT_BOURNE},
{"shfileexpansion", 0, 0, OPT_EMULATE|OPT_BOURNE},
{"shglob", 0, 0, OPT_EMULATE|OPT_BOURNE},
{"shinstdin", 's', 's', OPT_SPECIAL},
{"shoptionletters", 0, 0, OPT_EMULATE|OPT_BOURNE},
{"shortloops", 0, 0, OPT_ALL},
{"showerror", x'C', x'C', OPT_ALL},
{"showfserr", x'C', x'C', OPT_ALL},
{"shwordsplit", 'y', 0, OPT_EMULATE|OPT_BOURNE},
{"singlecommand", 't', 't', OPT_SPECIAL},
{"singlelinezle", 'M', 0, OPT_KSH},
{"sunkeyboardhack", 'L', 0, 0},
{"trace", x'C', x'C', OPT_ALL},
{"unset", x'u', x'u', OPT_EMULATE|OPT_BSHELL},
{"verbose", 'v', 'v', 0},
{"xtrace", 'x', 'x', 0},
{"zle", 'Z', 0, OPT_SPECIAL},
};
# undef x
#endif
EXTERN short int typtab[256];