I suggested to Emilio Grimaldo:
| :0
| * $ COMMAND ?? ^^(send|list) \/.*
| { FILE=./$MATCH }
| :0bfi
| | $FUNCTION $FILE
| :0a
| ! -t
What *was* I thinking? The "$" modifier on the first condition, which wasn't
needed after all, will reduce "\/" to just "/", so it will leave $MATCH at
its old value ("send" or "list") make the whole thing fail (you need "\\/"
to get extraction with the "$" modifier). Moreover, the first two recipes
there can be simplified into one:
:0bfi
* COMMAND ?? ^^(send|list) \/.*
| $FUNCTION ./$MATCH
:0a
! -t