[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature Request: scanf-like parsing

From: Oğuz
Subject: Re: Feature Request: scanf-like parsing
Date: Fri, 22 Jan 2021 19:54:05 +0300

On Fri, Jan 22, 2021 at 7:10 PM Léa Gris <lea.gris@noiraude.net> wrote:

> Which could be used to assign output of a command to a variable without
> a sub-shell:

It wouldn't be any different from

    compgen -u > temp_file
    mapfile -t users < temp_file

You can't run them asynchronously without forking.

Since everyone's making feature requests here, it'd be a shame if I didn't
participate. I think it'd be better if `${assoc[@]@K}' expanded to a word
list instead of a single word. And, having ampersand as a reference for the
matched substring in the replacement part of `${param/pat/rep}` would also
be good.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]