single-string arguments that are quoted and have spaces are getting handled by the field separator and not left intact as a single argument.
E.g.
# below has 3 arguments
$ bin/command start -- abc "d e f" hij
...
#!/usr/bin/env bash
# bin/command
for i in "$@"; do
echo "$i"
done
set -- $(args/normalize "$@")
printf "\n\nafter args...\n\n"
for i in "$@"; do
echo "$i"
done
output
abc
d e f
hij
after args
abc
d
e
f
hij
The output should be same after args/normalize.
single-string arguments that are quoted and have spaces are getting handled by the field separator and not left intact as a single argument.
E.g.
output
The output should be same after args/normalize.