I've the same "define with a block" proposal over IRC in the past, and skarnet is reluctant to implement it because (from what I've understood) he doesn't want to encourage using the substitution mechanism as a "macro"/shorthand system.
Maybe adding an option that exports $VAR to the environment as a netstring would work. It'd finally bring some company to `dollarat` as the only command with sort kind of output. Em sáb., 18 de mai. de 2024 21:18, Emanuele Torre <torreemanue...@gmail.com> escreveu: > On Sun, May 19, 2024 at 02:15:47AM +0200, Emanuele Torre wrote: > > With this, it will finally be possible to do something like: > > > > elglob cfiles *.c > > cmdA argA $cfiles > > multisubstitute { > > defines newcfiles { $cfiles } > > backtick foo { bar } > > } > > cmdB argB $foo $cfiles > > I meant: > elglob cfiles *.c > cmdA argA $cfiles > multisubstitute { > defines newcfiles { $cfiles } > backtick foo { bar } > } > cmdB argB $foo $newcfiles > > o/ > emanuele6 >