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

2017-03-06 Thread ToddAndMargo
On 03/06/2017 02:21 AM, ToddAndMargo wrote: Why is he putting the commands into an array He's being "fancy". -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

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

[perl #130941] infix: keeps containers around since October, resulting in confusing behaviour

2017-03-06 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #130941] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130941 > Original user with the problem: https://irclog.perlgeek.de/perl6/2017-03-06#i_14216611 T

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 malfun

[perl #130940] [Bug] Infinite starts-with loop

2017-03-06 Thread via RT
# New Ticket Created by Timothy Bollman # Please include the string: [perl #130940] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130940 > If you pass an undefined value into starts-with, it loops forever because the Cool cl

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

2017-03-06 Thread Parrot Raiser
"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 involving a NUL, and thought that was the "right" way to do it" Another technological Cheshire Cat bite. :-)* On 3/6/17, Brandon Allbery wrote

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 involving a NUL, and t

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 only of: > - \n (unix) > - \r\n (dos) > - \n\r

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 unix, openafs, kerberos, inf

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

2017-03-06 Thread Luca Ferrari
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 only of: - \n (unix) - \r\n (dos) - \n\r (old mac) At least I'm not unlucky enough to have encountered another combinat

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

[perl #130930] [LTA] Z and X think that a Slip represents multiple arguments

2017-03-06 Thread via RT
# New Ticket Created by Sam S. # Please include the string: [perl #130930] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130930 > say X~ (1, 2, 3); # (a1 a2 a3 b1 b2 b3) say X~ |(1, 2, 3); # (a123 b123)

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 clipboard-cop

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 Scree

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

2017-03-06 Thread ToddAndMargo
On 03/06/2017 01:32 AM, Timo Paulssen wrote: 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

Re: $*DISTRO

2017-03-06 Thread ToddAndMargo
On 03/06/2017 01:40 AM, Steve Mynott wrote: Try $*KERNEL S Hi Steve, That works! Thank you! -T $ perl6 -e ' say $*KERNEL;' linux (3.10.0.514.6.1.el.7.x.86._.64) C:\perl6 -e "say $*KERNEL;" win32 By the way win64 also give win32 including with the 64 bit raku Don't know if I will ever

Re: $*DISTRO

2017-03-06 Thread Steve Mynott
Try $*KERNEL S On 6 March 2017 at 09:10, ToddAndMargo wrote: > 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

Re: $*DISTRO

2017-03-06 Thread Timo Paulssen
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)

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

2017-03-06 Thread ToddAndMargo
On 03/06/2017 01:32 AM, Timo Paulssen wrote: 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

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 Bad

$*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