Re: [PATCH v6 2/4] worktree add: refactor opt exclusion tests
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 28, 2022, 12:54 UTC
- Message-ID
- <xmqq5ydvpu1o.fsf@gitster.g>
- In-Reply-To
- <20221228061539.13740-3-jacobabel@nullpo.dev>
Jacob Abel <jacobabel@nullpo.dev> writes:
> +# Saves parameter sequence/array as a string so they can be safely stored in a > +# variable and restored with `eval "set -- $arr"`. Sourced from > +# https://stackoverflow.com/a/27503158/15064705
Please do not copy from source with unknown licensing terms.
Isn't it sufficient to stringify "$*" and let it later split at $IFS boundary for the particular purpose of this test anyway?