diff options
author | Chet Ramey <chet.ramey@case.edu> | 2011-12-03 12:52:47 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2011-12-03 12:52:47 -0500 |
commit | 5e13499c55639e93fbe46ce3dc053d74e5578cf9 (patch) | |
tree | fa9727e25343ed0d726c0690e3e255f9f696d422 /version.c | |
parent | d3a24ed242e91e6afb53b2cbf38b89667637168d (diff) | |
download | bash-5e13499c55639e93fbe46ce3dc053d74e5578cf9.tar.gz |
commit bash-20040107 snapshot
Diffstat (limited to 'version.c')
-rw-r--r-- | version.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -28,6 +28,8 @@ #include "patchlevel.h" #include "conftypes.h" +#include "bashintl.h" + extern char *shell_name; /* Defines from version.h */ @@ -56,9 +58,17 @@ shell_version_string () if (tt[0] == '\0') { if (release_status) +#if defined (HAVE_SNPRINTF) + snprintf (tt, sizeof (tt), "%s.%d(%d)-%s", dist_version, patch_level, build_version, release_status); +#else sprintf (tt, "%s.%d(%d)-%s", dist_version, patch_level, build_version, release_status); +#endif else +#if defined (HAVE_SNPRINTF) + snprintf (tt, sizeof (tt), "%s.%d(%d)", dist_version, patch_level, build_version); +#else sprintf (tt, "%s.%d(%d)", dist_version, patch_level, build_version); +#endif } return tt; } @@ -69,5 +79,5 @@ show_shell_version (extended) { printf ("GNU bash, version %s (%s)\n", shell_version_string (), MACHTYPE); if (extended) - printf ("Copyright (C) 2002 Free Software Foundation, Inc.\n"); + printf (_("Copyright (C) 2004 Free Software Foundation, Inc.\n")); } |