Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: read string containing null



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)




Messages sorted by: Reverse Date, Date, Thread, Author