On 03/06/2017 01:55 AM, Timo Paulssen wrote:
Is there a way to send and "end of file" marker to terminate the pipe?

That is exactly what the call to .close does.


Looking over at

https://github.com/kmwallio/p6-OS-Clipboard/blob/master/lib/OS/Clipboard.pm6
lines 47 to 52


  sub clipboard-copy(Str $content) is export {
my @command = 'echo "', clipboard-slash($content), '"|', clipboard-current();
    my $result = shell @command.join(' ');
    $win_pasteboard = $content;
    return $result;
  }


"clipboard-current()" resolves to "xclip".

And I have no idea what he is doing.  Why is he
putting the commands into an array, then joining
the array with a space delimiter, when he calls
"shell"?

I am confused.

:'(

-T

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to