mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-12-01 20:07:46 +01:00
Imported from ../bash-2.05b.tar.gz.
This commit is contained in:
1 parent
f73dda092b
commit
7117c2d221
362 files changed
+34387
-15063
No files matched your search
@@ -203,6 +203,8 @@ struct flags_alist shell_flags[] = {
|
||||
|
||||
#define NUM_SHELL_FLAGS (sizeof (shell_flags) / sizeof (struct flags_alist))
|
||||
|
||||
char optflags[NUM_SHELL_FLAGS+4] = { '+' };
|
||||
|
||||
int *
|
||||
find_flag (name)
|
||||
int name;
|
||||
@@ -328,3 +330,15 @@ reset_shell_flags ()
|
||||
restricted = 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
initialize_flags ()
|
||||
{
|
||||
register int i;
|
||||
|
||||
for (i = 0; shell_flags[i].name; i++)
|
||||
optflags[i+1] = shell_flags[i].name;
|
||||
optflags[++i] = 'o';
|
||||
optflags[++i] = ';';
|
||||
optflags[i+1] = '\0';
|
||||
}
|
||||
Reference in new issue
Block a user