Bash-5.3 distribution sources and documentation

This commit is contained in:
Chet Ramey
2025-07-03 16:15:36 -04:00
parent 6794b5478f
commit b8c60bc9ca
896 changed files with 174241 additions and 103591 deletions
+15 -18
View File
@@ -1,6 +1,6 @@
/* bashversion.c -- Display bash version information. */
/* Copyright (C) 2001-2021 Free Software Foundation, Inc.
/* Copyright (C) 2001-2025 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
@@ -18,17 +18,19 @@
along with Bash. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
/* assume C90/POSIX-1992 compilation environment if cross-compiling */
#include "stdc.h"
#include <stdio.h>
#if defined (HAVE_UNISTD_H)
# include <unistd.h>
#ifndef CROSS_COMPILING
# include <config.h>
#else
# include <buildconf.h>
#endif
#include "bashansi.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#include <unistd.h>
#include "version.h"
#include "conftypes.h"
@@ -41,28 +43,23 @@
#define LFLAG 0x0020
#define XFLAG 0x0040
extern int optind;
extern char *optarg;
extern char *dist_version;
extern int patch_level;
extern char *shell_version_string PARAMS((void));
extern void show_shell_version PARAMS((int));
extern char *shell_version_string (void);
extern void show_shell_version (int);
char *shell_name = "bash";
char *progname;
static void
usage()
usage(void)
{
fprintf(stderr, "%s: usage: %s [-hrvpmlsx]\n", progname, progname);
}
int
main (argc, argv)
int argc;
char **argv;
main (int argc, char **argv)
{
int opt, oflags;
char dv[128], *rv;