feat(vars): $# init
This commit is contained in:
parent
da948f58fe
commit
07d345f754
2 changed files with 3 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue