From 51ec42886e5ae8d25846e2bd0dc8e83c9bcbf168 Mon Sep 17 00:00:00 2001 From: Ray Chason Date: Fri, 25 Nov 2022 08:39:38 -0500 Subject: [PATCH] Fix -dumpglyphids on Unix The order of the statements needs to be changed, so the -d is not interpreted as requesting a directory. --- sys/unix/unixmain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/unix/unixmain.c b/sys/unix/unixmain.c index 4992d9988..796c6fedc 100644 --- a/sys/unix/unixmain.c +++ b/sys/unix/unixmain.c @@ -114,12 +114,12 @@ main(int argc, char *argv[]) if (!dir) dir = nh_getenv("HACKDIR"); #endif /* CHDIR */ - /* handle -dalthackdir, -s , --version, --showpaths */ - early_options(&argc, &argv, &dir); #ifdef ENHANCED_SYMBOLS if (argcheck(argc, argv, ARG_DUMPGLYPHIDS) == 2) exit(EXIT_SUCCESS); #endif + /* handle -dalthackdir, -s , --version, --showpaths */ + early_options(&argc, &argv, &dir); #ifdef CHDIR /* * Change directories before we initialize the window system so