#include <stdlib.h>
#include "argp.h"
-#include "dirname.h"
+#include "progname.h"
#include "xvasprintf.h"
#include "gettext.h"
#include "manp.h"
#include "zsoelim.h"
-char *program_name;
int quiet = 1;
man_sandbox *sandbox;
char *manp;
int i;
- program_name = base_name (argv[0]);
+ set_program_name (argv[0]);
init_debug ();
pipeline_install_post_fork (pop_all_cleanups);