Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

segfault with extended globsΒ #1464

@jghub

Description

@jghub

this code

i=0
v=a
s=
while ((i < 10000)); do
  ((++i))
  s+=$v
done
[[ $s == +($v) ]]

reliably segfaults with current ksh2020, the problem is in this case inherited from ksh93v- (which in turn inherited it, for a change, from ksh93u+, so this is not a regression but an original ksh93 bug I presume).

the extended glob pattern in the final test is causing the segfault.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions