On Fri, Oct 22, 2021 at 2:05 AM Stephane Chazelas <stephane@xxxxxxxxxxxx> wrote: > > Other options are: > > var=$(cmd; print .); var=${var%.} Also with zsh/mapfile: () { var=$mapfile[$1] } =(cmd)