Re: multidefine segfault

From: fff iii <>
Date: Tue, 11 Apr 2017 21:42:49 -0400

> You only need one invocation.
> pipeline { echo one two three }
> withstdinas -n line
> importas -u line line
> multidefine $line { cmd key val }
> echo $key $val
> will print "two three".


Is it possible to use one multidefine on a $line that gets an unknown
number of words from stdin, then split it by one type of delimiter
with the -r option (not knowing how many words it would get into
$val). For instance, val might contain an unknown number of words.

Then, I'd like to use a second multidefine or something like it to
extract those words out of $val into separate variables. Is this

Thank you.
Received on Wed Apr 12 2017 - 01:42:49 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC