summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/basename.c1
-rw-r--r--src/cat.c1
-rw-r--r--src/chgrp.c1
-rw-r--r--src/chmod.c1
-rw-r--r--src/chown.c1
-rw-r--r--src/chroot.c1
-rw-r--r--src/cksum.c1
-rw-r--r--src/comm.c1
-rw-r--r--src/cp.c1
-rw-r--r--src/csplit.c1
-rw-r--r--src/cut.c1
-rw-r--r--src/date.c1
-rw-r--r--src/dd.c1
-rw-r--r--src/df.c1
-rw-r--r--src/dircolors.c1
-rw-r--r--src/dirname.c1
-rw-r--r--src/du.c1
-rw-r--r--src/echo.c1
-rw-r--r--src/env.c1
-rw-r--r--src/expand.c1
-rw-r--r--src/expr.c1
-rw-r--r--src/factor.c1
-rw-r--r--src/fmt.c1
-rw-r--r--src/fold.c1
-rw-r--r--src/head.c1
-rw-r--r--src/hostid.c1
-rw-r--r--src/hostname.c1
-rw-r--r--src/id.c1
-rw-r--r--src/install.c1
-rw-r--r--src/join.c1
-rw-r--r--src/kill.c1
-rw-r--r--src/link.c1
-rw-r--r--src/ln.c1
-rw-r--r--src/logname.c1
-rw-r--r--src/ls.c1
-rw-r--r--src/md5sum.c1
-rw-r--r--src/mkdir.c1
-rw-r--r--src/mkfifo.c1
-rw-r--r--src/mknod.c1
-rw-r--r--src/mv.c1
-rw-r--r--src/nice.c1
-rw-r--r--src/nl.c1
-rw-r--r--src/od.c1
-rw-r--r--src/paste.c1
-rw-r--r--src/pathchk.c1
-rw-r--r--src/pinky.c1
-rw-r--r--src/pr.c1
-rw-r--r--src/printenv.c1
-rw-r--r--src/printf.c1
-rw-r--r--src/ptx.c1
-rw-r--r--src/pwd.c1
-rw-r--r--src/readlink.c1
-rw-r--r--src/rm.c1
-rw-r--r--src/rmdir.c1
-rw-r--r--src/seq.c1
-rw-r--r--src/shred.c1
-rw-r--r--src/sleep.c1
-rw-r--r--src/sort.c1
-rw-r--r--src/split.c1
-rw-r--r--src/stat.c1
-rw-r--r--src/stty.c1
-rw-r--r--src/su.c1
-rw-r--r--src/sum.c1
-rw-r--r--src/sync.c1
-rw-r--r--src/tac.c1
-rw-r--r--src/tail.c1
-rw-r--r--src/tee.c1
-rw-r--r--src/test.c1
-rw-r--r--src/touch.c1
-rw-r--r--src/tr.c1
-rw-r--r--src/true.c1
-rw-r--r--src/tsort.c1
-rw-r--r--src/tty.c1
-rw-r--r--src/uname.c1
-rw-r--r--src/unexpand.c1
-rw-r--r--src/uniq.c1
-rw-r--r--src/unlink.c1
-rw-r--r--src/uptime.c1
-rw-r--r--src/users.c1
-rw-r--r--src/wc.c1
-rw-r--r--src/who.c1
-rw-r--r--src/whoami.c1
-rw-r--r--src/yes.c1
83 files changed, 83 insertions, 0 deletions
diff --git a/src/basename.c b/src/basename.c
index 1f0d682ef..f76defb91 100644
--- a/src/basename.c
+++ b/src/basename.c
@@ -92,6 +92,7 @@ main (int argc, char **argv)
{
char *name;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/cat.c b/src/cat.c
index b488acd55..a13b9f99e 100644
--- a/src/cat.c
+++ b/src/cat.c
@@ -563,6 +563,7 @@ main (int argc, char **argv)
{NULL, 0, NULL, 0}
};
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/chgrp.c b/src/chgrp.c
index 5727b2720..1bcc85ed3 100644
--- a/src/chgrp.c
+++ b/src/chgrp.c
@@ -162,6 +162,7 @@ main (int argc, char **argv)
int optc;
struct Chown_option chopt;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/chmod.c b/src/chmod.c
index be8262b85..7059b863e 100644
--- a/src/chmod.c
+++ b/src/chmod.c
@@ -278,6 +278,7 @@ main (int argc, char **argv)
int thisind;
int c;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/chown.c b/src/chown.c
index b38a62f77..10273bd42 100644
--- a/src/chown.c
+++ b/src/chown.c
@@ -153,6 +153,7 @@ main (int argc, char **argv)
int errors = 0;
int optc;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/chroot.c b/src/chroot.c
index 421e5212d..8be5fe6a0 100644
--- a/src/chroot.c
+++ b/src/chroot.c
@@ -64,6 +64,7 @@ If no command is given, run ``${SHELL} -i'' (default: /bin/sh).\n\
int
main (int argc, char **argv)
{
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/cksum.c b/src/cksum.c
index 0bbba3a3c..7291ad437 100644
--- a/src/cksum.c
+++ b/src/cksum.c
@@ -301,6 +301,7 @@ main (int argc, char **argv)
int i, c;
int errors = 0;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/comm.c b/src/comm.c
index 1ee2ea833..02066ec91 100644
--- a/src/comm.c
+++ b/src/comm.c
@@ -222,6 +222,7 @@ main (int argc, char **argv)
{
int c;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/cp.c b/src/cp.c
index 90747f8e0..8a947be66 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -837,6 +837,7 @@ main (int argc, char **argv)
int copy_contents = 0;
char *target_directory = NULL;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/csplit.c b/src/csplit.c
index 0009d04fc..e17b4a7b9 100644
--- a/src/csplit.c
+++ b/src/csplit.c
@@ -1369,6 +1369,7 @@ main (int argc, char **argv)
struct sigaction oldact, newact;
#endif
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/cut.c b/src/cut.c
index 96fa257ff..037aa070a 100644
--- a/src/cut.c
+++ b/src/cut.c
@@ -637,6 +637,7 @@ main (int argc, char **argv)
int optc, exit_status = 0;
int delim_specified = 0;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/date.c b/src/date.c
index 4f5a11208..6e18b825f 100644
--- a/src/date.c
+++ b/src/date.c
@@ -302,6 +302,7 @@ main (int argc, char **argv)
? COMMON_SHORT_OPTIONS "I::"
: COMMON_SHORT_OPTIONS "I:");
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/dd.c b/src/dd.c
index 9dcc75d54..ee4ea68c5 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -1141,6 +1141,7 @@ main (int argc, char **argv)
int i;
int exit_status;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/df.c b/src/df.c
index 0a9574d92..aeeae1531 100644
--- a/src/df.c
+++ b/src/df.c
@@ -755,6 +755,7 @@ main (int argc, char **argv)
struct stat *stats IF_LINT (= 0);
int n_valid_args = 0;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/dircolors.c b/src/dircolors.c
index 73362e864..97e34628e 100644
--- a/src/dircolors.c
+++ b/src/dircolors.c
@@ -426,6 +426,7 @@ main (int argc, char **argv)
enum Shell_syntax syntax = SHELL_SYNTAX_UNKNOWN;
int print_database = 0;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/dirname.c b/src/dirname.c
index e88e6a21c..5670ec6c2 100644
--- a/src/dirname.c
+++ b/src/dirname.c
@@ -67,6 +67,7 @@ main (int argc, char **argv)
char const *result;
size_t len;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/du.c b/src/du.c
index f2819b6ff..760173cc8 100644
--- a/src/du.c
+++ b/src/du.c
@@ -574,6 +574,7 @@ main (int argc, char **argv)
cwd_only[0] = ".";
cwd_only[1] = NULL;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/echo.c b/src/echo.c
index 3538ed503..9ce8547ad 100644
--- a/src/echo.c
+++ b/src/echo.c
@@ -117,6 +117,7 @@ main (int argc, char **argv)
int display_return = 1, do_v9 = 0;
int allow_options = 1;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/env.c b/src/env.c
index c6879aed5..27414a288 100644
--- a/src/env.c
+++ b/src/env.c
@@ -142,6 +142,7 @@ main (register int argc, register char **argv, char **envp)
int optc;
int ignore_environment = 0;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/expand.c b/src/expand.c
index bd558fff9..530b1d4fd 100644
--- a/src/expand.c
+++ b/src/expand.c
@@ -342,6 +342,7 @@ main (int argc, char **argv)
convert_entire_line = 1;
tab_list = NULL;
first_free_tab = 0;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/expr.c b/src/expr.c
index b39b73f17..bfc8dc545 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -156,6 +156,7 @@ main (int argc, char **argv)
{
VALUE *v;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/factor.c b/src/factor.c
index fc2a407a8..6c01d3964 100644
--- a/src/factor.c
+++ b/src/factor.c
@@ -190,6 +190,7 @@ main (int argc, char **argv)
{
int fail;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/fmt.c b/src/fmt.c
index 099cb9402..0f81c64ab 100644
--- a/src/fmt.c
+++ b/src/fmt.c
@@ -321,6 +321,7 @@ main (register int argc, register char **argv)
int optchar;
int fail;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/fold.c b/src/fold.c
index cf8867369..5787810ad 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -238,6 +238,7 @@ main (int argc, char **argv)
int optc;
int errs = 0;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/head.c b/src/head.c
index 7d58aefa9..5a4943f32 100644
--- a/src/head.c
+++ b/src/head.c
@@ -937,6 +937,7 @@ main (int argc, char **argv)
static char const *const default_file_list[] = {"-", NULL};
char const *const *file_list;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/hostid.c b/src/hostid.c
index d27207baf..6eec1c3b0 100644
--- a/src/hostid.c
+++ b/src/hostid.c
@@ -64,6 +64,7 @@ main (int argc, char **argv)
{
long int id;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/hostname.c b/src/hostname.c
index ed6d59252..540310115 100644
--- a/src/hostname.c
+++ b/src/hostname.c
@@ -83,6 +83,7 @@ main (int argc, char **argv)
{
char *hostname;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/id.c b/src/id.c
index 9d4b28668..d0c3aa2a5 100644
--- a/src/id.c
+++ b/src/id.c
@@ -120,6 +120,7 @@ main (int argc, char **argv)
/* If nonzero, output only the user ID(s). -u */
int just_user = 0;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/install.c b/src/install.c
index 8e4dd98ea..bcad6b662 100644
--- a/src/install.c
+++ b/src/install.c
@@ -187,6 +187,7 @@ main (int argc, char **argv)
int n_files;
char **file;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/join.c b/src/join.c
index 668c34b60..c04a69ccd 100644
--- a/src/join.c
+++ b/src/join.c
@@ -737,6 +737,7 @@ main (int argc, char **argv)
FILE *fp1, *fp2;
int optc, prev_optc = 0, nfiles;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/kill.c b/src/kill.c
index cd33366d1..92d23be0d 100644
--- a/src/kill.c
+++ b/src/kill.c
@@ -290,6 +290,7 @@ main (int argc, char **argv)
int signum = -1;
char signame[SIG2STR_MAX];
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/link.c b/src/link.c
index 760ad945b..20cf42b53 100644
--- a/src/link.c
+++ b/src/link.c
@@ -64,6 +64,7 @@ Usage: %s FILE1 FILE2\n\
int
main (int argc, char **argv)
{
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/ln.c b/src/ln.c
index ea1d38358..f46ad1b23 100644
--- a/src/ln.c
+++ b/src/ln.c
@@ -406,6 +406,7 @@ main (int argc, char **argv)
char **file;
int dest_is_dir;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/logname.c b/src/logname.c
index ac2e8b300..52c3baae3 100644
--- a/src/logname.c
+++ b/src/logname.c
@@ -64,6 +64,7 @@ main (int argc, char **argv)
register char *cp;
int c;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/ls.c b/src/ls.c
index cd6227a20..00924e08c 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -1033,6 +1033,7 @@ main (int argc, char **argv)
register struct pending *thispend;
unsigned int n_files;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/md5sum.c b/src/md5sum.c
index 41962f333..43c1ef79f 100644
--- a/src/md5sum.c
+++ b/src/md5sum.c
@@ -553,6 +553,7 @@ main (int argc, char **argv)
#endif
/* Setting values of global variables. */
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/mkdir.c b/src/mkdir.c
index 382d8027b..3527e1073 100644
--- a/src/mkdir.c
+++ b/src/mkdir.c
@@ -88,6 +88,7 @@ main (int argc, char **argv)
int errors = 0;
int optc;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/mkfifo.c b/src/mkfifo.c
index 0cdb0b635..0739c3619 100644
--- a/src/mkfifo.c
+++ b/src/mkfifo.c
@@ -80,6 +80,7 @@ main (int argc, char **argv)
int errors = 0;
int optc;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/mknod.c b/src/mknod.c
index 8156fae69..01b11f47b 100644
--- a/src/mknod.c
+++ b/src/mknod.c
@@ -93,6 +93,7 @@ main (int argc, char **argv)
int optc;
mode_t node_type;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/mv.c b/src/mv.c
index b96c7cf36..0d7f742c3 100644
--- a/src/mv.c
+++ b/src/mv.c
@@ -378,6 +378,7 @@ main (int argc, char **argv)
unsigned int n_files;
char **file;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/nice.c b/src/nice.c
index f8b5b85f2..1af3b33c4 100644
--- a/src/nice.c
+++ b/src/nice.c
@@ -88,6 +88,7 @@ main (int argc, char **argv)
int adjustment_given = 0;
int i;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/nl.c b/src/nl.c
index 405c4161c..bb3adfd56 100644
--- a/src/nl.c
+++ b/src/nl.c
@@ -468,6 +468,7 @@ main (int argc, char **argv)
size_t len;
int fail = 0;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/od.c b/src/od.c
index 585628e1f..52aa55e54 100644
--- a/src/od.c
+++ b/src/od.c
@@ -1626,6 +1626,7 @@ main (int argc, char **argv)
after any true address. */
uintmax_t pseudo_start IF_LINT (= 0);
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/paste.c b/src/paste.c
index 336e15bf4..3ce91f066 100644
--- a/src/paste.c
+++ b/src/paste.c
@@ -430,6 +430,7 @@ main (int argc, char **argv)
int optc, exit_status;
char default_delims[2], zero_delims[3];
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/pathchk.c b/src/pathchk.c
index d84b4b620..4fd2ba0ce 100644
--- a/src/pathchk.c
+++ b/src/pathchk.c
@@ -163,6 +163,7 @@ main (int argc, char **argv)
int check_portability = 0;
int optc;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/pinky.c b/src/pinky.c
index c2bbd6eab..ce5e03bfe 100644
--- a/src/pinky.c
+++ b/src/pinky.c
@@ -500,6 +500,7 @@ main (int argc, char **argv)
int optc, longind;
int n_users;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/pr.c b/src/pr.c
index 41cf79a52..81c7aec5f 100644
--- a/src/pr.c
+++ b/src/pr.c
@@ -860,6 +860,7 @@ main (int argc, char **argv)
? COMMON_SHORT_OPTIONS "S::"
: COMMON_SHORT_OPTIONS "S:");
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/printenv.c b/src/printenv.c
index 73c431fe6..276869e26 100644
--- a/src/printenv.c
+++ b/src/printenv.c
@@ -84,6 +84,7 @@ main (int argc, char **argv)
int c;
int exit_status;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/printf.c b/src/printf.c
index f0825e1e0..361334acc 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -553,6 +553,7 @@ main (int argc, char **argv)
char *format;
int args_used;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/ptx.c b/src/ptx.c
index a0be0f34b..92252cdb8 100644
--- a/src/ptx.c
+++ b/src/ptx.c
@@ -1951,6 +1951,7 @@ main (int argc, char **argv)
/* Decode program options. */
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/pwd.c b/src/pwd.c
index 316bd6481..7d828f79f 100644
--- a/src/pwd.c
+++ b/src/pwd.c
@@ -60,6 +60,7 @@ main (int argc, char **argv)
{
char *wd;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/readlink.c b/src/readlink.c
index 0f34bebb8..be525564a 100644
--- a/src/readlink.c
+++ b/src/readlink.c
@@ -91,6 +91,7 @@ main (int argc, char *const argv[])
char *value;
int optc;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/rm.c b/src/rm.c
index 57fefdec5..4779f2e3c 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -148,6 +148,7 @@ main (int argc, char **argv)
int fail = 0;
int c;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/rmdir.c b/src/rmdir.c
index 8c4ec98f2..f21092ddf 100644
--- a/src/rmdir.c
+++ b/src/rmdir.c
@@ -170,6 +170,7 @@ main (int argc, char **argv)
int errors = 0;
int optc;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/seq.c b/src/seq.c
index 601f5f13c..cae6276c4 100644
--- a/src/seq.c
+++ b/src/seq.c
@@ -339,6 +339,7 @@ main (int argc, char **argv)
/* The printf(3) format used for output. */
char *format_str = NULL;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/shred.c b/src/shred.c
index 305023b5a..5060c9a46 100644
--- a/src/shred.c
+++ b/src/shred.c
@@ -1516,6 +1516,7 @@ main (int argc, char **argv)
int c;
int i;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/sleep.c b/src/sleep.c
index f8a818692..6050f0fde 100644
--- a/src/sleep.c
+++ b/src/sleep.c
@@ -112,6 +112,7 @@ main (int argc, char **argv)
int c;
int fail = 0;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/sort.c b/src/sort.c
index c0c007ff3..39074b4e6 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -2173,6 +2173,7 @@ main (int argc, char **argv)
struct sigaction oldact, newact;
#endif
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/split.c b/src/split.c
index 1b1ff2a7c..ebf98e245 100644
--- a/src/split.c
+++ b/src/split.c
@@ -363,6 +363,7 @@ main (int argc, char **argv)
int c;
int digits_optind = 0;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/stat.c b/src/stat.c
index 020e73fdf..2dc82438f 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -776,6 +776,7 @@ main (int argc, char *argv[])
int terse = 0;
char *format = NULL;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/stty.c b/src/stty.c
index 7f7d4ae19..70fe34f89 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -742,6 +742,7 @@ main (int argc, char **argv)
const char *posixly_correct = getenv ("POSIXLY_CORRECT");
int invalid_long_option = 0;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/su.c b/src/su.c
index 13b754add..03dc7d8d5 100644
--- a/src/su.c
+++ b/src/su.c
@@ -468,6 +468,7 @@ main (int argc, char **argv)
struct passwd *pw;
struct passwd pw_copy;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/sum.c b/src/sum.c
index f3fa81966..06bfdb3d1 100644
--- a/src/sum.c
+++ b/src/sum.c
@@ -223,6 +223,7 @@ main (int argc, char **argv)
int files_given;
int (*sum_func) (const char *, int) = bsd_sum_file;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/sync.c b/src/sync.c
index 7c2aabad2..1481c4968 100644
--- a/src/sync.c
+++ b/src/sync.c
@@ -56,6 +56,7 @@ Force changed blocks to disk, update the super block.\n\
int
main (int argc, char **argv)
{
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/tac.c b/src/tac.c
index c7d9e258d..25fc637de 100644
--- a/src/tac.c
+++ b/src/tac.c
@@ -608,6 +608,7 @@ main (int argc, char **argv)
int optc, errors;
int have_read_stdin = 0;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/tail.c b/src/tail.c
index 5f06c75c9..1c76ef67e 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -1634,6 +1634,7 @@ main (int argc, char **argv)
see if it has changed. */
double sleep_interval = 1.0;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/tee.c b/src/tee.c
index fdf99d614..2caf59991 100644
--- a/src/tee.c
+++ b/src/tee.c
@@ -80,6 +80,7 @@ main (int argc, char **argv)
int errs;
int optc;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/test.c b/src/test.c
index f0af41ed1..631b4af1b 100644
--- a/src/test.c
+++ b/src/test.c
@@ -1073,6 +1073,7 @@ main (int margc, char **margv)
if (code)
return (test_error_return);
#else /* TEST_STANDALONE */
+ initialize_main (&margc, &margv);
program_name = margv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/touch.c b/src/touch.c
index 3847bde24..a34647fef 100644
--- a/src/touch.c
+++ b/src/touch.c
@@ -265,6 +265,7 @@ main (int argc, char **argv)
int date_set = 0;
int err = 0;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/tr.c b/src/tr.c
index 5e1761689..545f0df06 100644
--- a/src/tr.c
+++ b/src/tr.c
@@ -1793,6 +1793,7 @@ main (int argc, char **argv)
struct Spec_list *s1 = &buf1;
struct Spec_list *s2 = &buf2;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/true.c b/src/true.c
index ecbf451f8..5c5ab22c1 100644
--- a/src/true.c
+++ b/src/true.c
@@ -49,6 +49,7 @@ These option names may not be abbreviated.\n\
int
main (int argc, char **argv)
{
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/tsort.c b/src/tsort.c
index 52f0550e3..57421a522 100644
--- a/src/tsort.c
+++ b/src/tsort.c
@@ -550,6 +550,7 @@ main (int argc, char **argv)
{
int opt;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/tty.c b/src/tty.c
index 2b8457cb4..a14315f58 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -78,6 +78,7 @@ main (int argc, char **argv)
char *tty;
int optc;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/uname.c b/src/uname.c
index 9f613fdc3..0d81a1434 100644
--- a/src/uname.c
+++ b/src/uname.c
@@ -151,6 +151,7 @@ main (int argc, char **argv)
/* Mask indicating which elements to print. */
unsigned toprint = 0;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/unexpand.c b/src/unexpand.c
index b91abd87b..423f43b2b 100644
--- a/src/unexpand.c
+++ b/src/unexpand.c
@@ -408,6 +408,7 @@ main (int argc, char **argv)
bool obsolete_tablist = false;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/uniq.c b/src/uniq.c
index f0c399759..c945be391 100644
--- a/src/uniq.c
+++ b/src/uniq.c
@@ -397,6 +397,7 @@ main (int argc, char **argv)
char const *file[2];
file[0] = file[1] = "-";
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/unlink.c b/src/unlink.c
index 7c8384951..f5c3c24d1 100644
--- a/src/unlink.c
+++ b/src/unlink.c
@@ -63,6 +63,7 @@ Usage: %s FILE\n\
int
main (int argc, char **argv)
{
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/uptime.c b/src/uptime.c
index 0aeb2db1d..934b1b8a4 100644
--- a/src/uptime.c
+++ b/src/uptime.c
@@ -208,6 +208,7 @@ int
main (int argc, char **argv)
{
int optc, longind;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/users.c b/src/users.c
index 67f8f4110..bee2ff36d 100644
--- a/src/users.c
+++ b/src/users.c
@@ -133,6 +133,7 @@ int
main (int argc, char **argv)
{
int optc, longind;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/wc.c b/src/wc.c
index 5d520ff70..65bdb2ebd 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -524,6 +524,7 @@ main (int argc, char **argv)
int optc;
int nfiles;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/who.c b/src/who.c
index 7f0710893..c9a8093db 100644
--- a/src/who.c
+++ b/src/who.c
@@ -621,6 +621,7 @@ main (int argc, char **argv)
int optc, longind;
int assumptions = 1;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/whoami.c b/src/whoami.c
index 583ed02c2..7a5121a89 100644
--- a/src/whoami.c
+++ b/src/whoami.c
@@ -69,6 +69,7 @@ main (int argc, char **argv)
register uid_t uid;
int c;
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/src/yes.c b/src/yes.c
index f832b4775..ff6fd83ea 100644
--- a/src/yes.c
+++ b/src/yes.c
@@ -67,6 +67,7 @@ Repeatedly output a line with all specified STRING(s), or `y'.\n\
int
main (int argc, char **argv)
{
+ initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);