0925名無しさん@お腹いっぱい。
2018/05/03(木) 03:20:16.97いまいちこのコードがなにやってるのかよくわからんのですが
https://unix.stackexchange.com/questions/258512/how-to-remove-a-positional-parameter-from
for arg do
shift
[ "$arg" = "-inf" ] && continue
set -- "$@" "$arg"
done
printf '%s\n' "$@"