Re: I need the rules for qx with a pipe inside

2017-03-06 Thread ToddAndMargo
On 03/06/2017 12:20 AM, ToddAndMargo wrote: qx{ echo $Str | xclip -selection primary }; passes syntax, but hangs when run Hi All, I figured it out. The reason the above "hangs" is because it is "ambiguous". What is Perl and what is bash are not tightly delineated. Is "$Str" the name of a

Re: I need the rules for qx with a pipe inside

2017-03-06 Thread ToddAndMargo
On 03/06/2017 12:20 AM, ToddAndMargo wrote: qx{ echo $Str | xclip -selection primary }; passes syntax, but hangs when run I figured it out. I will get back later today with and explanation and examples -- ~~ Computers are like air conditioners. They

Re: Is there a list out there of all the \n characters?

2017-03-06 Thread Brandon Allbery
On Mon, Mar 6, 2017 at 12:35 PM, H.Merijn Brand wrote: > But don't be surprised to see > > \r\r\n > And other weird stuff. There's at least one program out there where someone apparently used od on the output of a telnet session, saw an ancient hack for ancient teletypes

Re: Is there a list out there of all the \n characters?

2017-03-06 Thread H.Merijn Brand
On Mon, 6 Mar 2017 18:08:47 +0100, Luca Ferrari wrote: > On Mon, Mar 6, 2017 at 11:14 AM, ToddAndMargo wrote: > > Hi All, > > > > Is there a list of all the \n pairs out there somewhere? > > > > Not sure, but if you mean a newline than I'm aware

Re: Is there a list out there of all the \n characters?

2017-03-06 Thread Brandon Allbery
On Mon, Mar 6, 2017 at 12:08 PM, Luca Ferrari wrote: > - \n\r (old mac) Pre-OS X used simply \r. not \n\r. -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net

Re: Is there a list out there of all the \n characters?

2017-03-06 Thread Will Coleda
Can you clarify the request here, I'm not sure what you mean. On Mon, Mar 6, 2017 at 5:14 AM, ToddAndMargo wrote: > Hi All, > > Is there a list of all the \n pairs out there somewhere? > > Many thanks, > -T -- Will "Coke" Coleda

Re: I need the rules for qx with a pipe inside

2017-03-06 Thread ToddAndMargo
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

Is there a list out there of all the \n characters?

2017-03-06 Thread ToddAndMargo
Hi All, Is there a list of all the \n pairs out there somewhere? Many thanks, -T

Re: I need the rules for qx with a pipe inside

2017-03-06 Thread Timo Paulssen
> Is there a way to send and "end of file" marker to terminate the pipe? That is exactly what the call to .close does.

Re: $*DISTRO

2017-03-06 Thread ToddAndMargo
On 03/06/2017 01:35 AM, Timo Paulssen wrote: Doesn't seem to be, but there's $*DISTRO.is-win, which is usually enough (i.e. you have to do one dumb thing on windows and another sane thing on literally anything else) Thank you! -- ~ I am Windows I am the Blue

Re: I need the rules for qx with a pipe inside

2017-03-06 Thread Timo Paulssen
This is because of how xclip works. It keeps running until you kill it, or until the number of pastes has been reached that you specify with -loops. You will want to use Proc::Async or run with an :in parameter instead of shelling into a redirect with echo, here's why: timo@schmand ~> cat

$*DISTRO

2017-03-06 Thread ToddAndMargo
Hi All, Is there a $*DISTRO or some such that will tell me just "linux" and not "rhel ..." or "fedora ..."? Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

I need the rules for qx with a pipe inside

2017-03-06 Thread ToddAndMargo
qx{ echo $Str | xclip -selection primary }; passes syntax, but hangs when run