Jacek Grzebyta
1/15/2016 3:34:00 PM
"Pascal J. Bourguignon" <pjb@informatimago.com> writes:
Dear Pascal and Kaz,
Thanks a lot for advice.
>
> b | ( a | merge 3<&0 ) 4<&0 )
>
> Granted, the syntax is a little strange, because | â?¦ n<&0 has to be
> understood as a single operator. One would want to write n| insteadâ?¦
>
I am not sure what is the order of execution.
> b 4| ( a 3| merge )
When I put that into script then I have the bad file descriptor error.
echo hello 3| (echo world 4| merge)
> The problem is rather that very few unix programs take more than one
> input file, so we don't have often the opportunity to write such
> redirections. The only instance I met was a program that took a
> password from a file descriptor indicated in the arguments, perhaps it
> was an old version of gpg?
In my real project I have multiple ins and outs. :-( That why I
wanted to use lisp. Actually I am moving toward Clojure as I can use
some Java stuff which are not supported by Common Lisp.
Regards,
Jacek