From 1956bddd5176f4993b195a8b5bf308d244fd4c98 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 8 Feb 2025 13:36:48 +0100 Subject: Fix typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- makeenv.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/makeenv.c b/makeenv.c index df940be..2ac44b3 100644 --- a/makeenv.c +++ b/makeenv.c @@ -514,7 +514,7 @@ main(int argc, char *argv[]) * add) or it is recognised to never have an argument */ put_option(arg); } else if (contains(arged_longopts, arg)) { - /* Long option with dettached argument */ + /* Long option with detached argument */ put_option(arg); if (!argv[1]) { fprintf(stderr, "%s: argument for option %s missing\n", argv0, arg); @@ -522,7 +522,7 @@ main(int argc, char *argv[]) } put_option(*++argv); } else if (contains(optarged_longopts, arg)) { - /* Long option with either dettached argument or no argument */ + /* Long option with either detached argument or no argument */ put_option(arg); if (argv[1] && argv[1][0] != '-') { /* The option has a detached argument */ @@ -547,7 +547,7 @@ main(int argc, char *argv[]) put_option(arg); break; } else if (argv[1]) { - /* Argument is dettached from option*/ + /* Argument is detached from option*/ put_option_short(*arg++); put_option(*++argv); break; @@ -556,19 +556,19 @@ main(int argc, char *argv[]) return 125; } } else if (strchr(optatarged_opts, *arg)) { - /* Option may have an attached argument, but it cannot have a dettached argument */ + /* Option may have an attached argument, but it cannot have a detached argument */ put_option_prefix_dash(arg); break; } else if (strchr(optarged_opts, *arg)) { - /* Option may have an attached or dettached argument */ + /* Option may have an attached or detached argument */ if (arg[1]) { /* Argument is attached to option */ put_option_prefix_dash(arg); } else { - /* Either there is no argument, or it is dettached from the option */ + /* Either there is no argument, or it is detached from the option */ put_option_short(*arg++); if (argv[1] && argv[1][0] != '-') { - /* Argument exist and is dettached. We assume that if the next + /* Argument exist and is detached. We assume that if the next * argument in the command line is the option's argument unless * it starts with '-'; however some implementations can be more * intelligent about determining what is an option argument and -- cgit v1.2.3-70-g09d2