well make tests, or make test input and i test em on my solution you on
yours
for me a chained list of long commands like you showed is ultra too slow
recently i just began to chain = assignments, for speed, very good
i also soon substitude declare -p content to different declare content to
be set
On Fri, Mar 12, 2021 at 8:04 PM Peng Yu <pengyu.ut@gmail.com> wrote:
> I don't want to make that assumption. I want to make sure the code is
> robust against all possible input. That is the point of this question.
>
> On 3/12/21, Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com> wrote:
> > you can replace it for a non existant string, one or more letters
> >
> > On Fri, Mar 12, 2021 at 8:01 PM Peng Yu <pengyu.ut@gmail.com> wrote:
> >
> >> > however i think the chained stuff may work perfectly
> >>
> >> Your solution uses a special character $'\1', it will not be robust
> >> against input with that character.
> >>
> >> --
> >> Regards,
> >> Peng
> >>
> >
>
>
> --
> Regards,
> Peng
>