Skip to content

zsh: support array slicing with a comma-separated index expression #1207

@mvdan

Description

@mvdan

For example, in Bash:

$ a=(one two three)
$ echo ${a[@]:1:2}
two three

but in Zsh:

% a=(one two three)
% echo ${a[2,3]}   
two three

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions