Re: defines varname { [values]... } prog...

From: Carlos Eduardo <carana2099_at_gmail.com>
Date: Thu, 23 May 2024 18:56:51 -0300

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 <torreemanuele6_at_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
>
Received on Thu May 23 2024 - 23:56:51 CEST

This archive was generated by hypermail 2.4.0 : Thu May 23 2024 - 23:57:29 CEST