feat(vars): $# init

This commit is contained in:
william.valenduc 2026-01-24 14:51:27 +00:00
parent da948f58fe
commit 07d345f754
2 changed files with 3 additions and 4 deletions

View file

@ -67,6 +67,9 @@ int args_handler(int argc, char **argv, struct args_options *options,
}
}
int_to_str(arg_index - 1, index_str);
set_var_copy(vars, "#", index_str);
if (options->type == INPUT_UNDEFINED)
options->type = INPUT_STDIN;