Re: Quoting issue in Windows

2019-12-04 Thread ToddAndMargo via perl6-users
On 2019-12-04 08:47, yary wrote: Requoting myself with emphasis /> If you can post a *_file_* that does that, I'll eat my hat!/ show me an "exapmle.raku" file that the command "perl6 example.raku" won't interpolate variables in Windows but will in Unix in a buggy way, and I'll eat my hat.

Re: Quoting issue in Windows

2019-12-04 Thread yary
Requoting myself with emphasis *> If you can post a file that does that, I'll eat my hat!* show me an "exapmle.raku" file that the command "perl6 example.raku" won't interpolate variables in Windows but will in Unix in a buggy way, and I'll eat my hat. I'm not here to discuss command-line

Re: Quoting issue in Windows

2019-12-03 Thread ToddAndMargo via perl6-users
On 2019-12-03 19:14, Paul Procacci wrote: echo isn't a great example at all.  echo is both OS and SHELL specific. Not only that, echo has argv to work with; each with it's own terminating '\0'. It absolutely can be quite literal, though that doesn't stop the implementors from doing whatever

Re: Quoting issue in Windows

2019-12-03 Thread Paul Procacci
echo isn't a great example at all. echo is both OS and SHELL specific. Not only that, echo has argv to work with; each with it's own terminating '\0'. It absolutely can be quite literal, though that doesn't stop the implementors from doing whatever they want. Here's a snippet from my own OS's

Re: Quoting issue in Windows

2019-12-03 Thread ToddAndMargo via perl6-users
My keeper file on the subject; perl6: literal quotes: Reference(s): https://docs.perl6.org/language/quoting Everything inside single quotes ("''") is literal, EXCEPT if a backslash (escape) is involved. In that case use Q or a double backslash (escape the escape) $ p6 'say "Drive

Re: Quoting issue in Windows

2019-12-03 Thread ToddAndMargo via perl6-users
On 2019-12-03 17:31, Paul Procacci wrote: When a string is specified in single quotes, perl6 (or any other language that I'm aware of) will not evaluate or interpret an escape character EXCEPT when the escape is follow'd by a single quote (') or backslash(\). These HAVE to be escaped and the

Re: Quoting issue in Windows

2019-12-03 Thread ToddAndMargo via perl6-users
On 2019-12-03 08:04, yary wrote: >Seems to me there is a bug here that > >     rakudo-star-2019.03-x86_64 (JIT).msi > >is trying to interpret things inside single quotes. If you can post a file that does that, I'll eat my hat! here's a little recap of the basic quoting, which does

Re: Quoting issue in Windows

2019-12-03 Thread yary
>Seems to me there is a bug here that > > rakudo-star-2019.03-x86_64 (JIT).msi > >is trying to interpret things inside single quotes. If you can post a file that does that, I'll eat my hat! here's a little recap of the basic quoting, which does exactly the same in recent perl6 and

Re: Quoting issue in Windows

2019-12-03 Thread ToddAndMargo via perl6-users
On Tue, Dec 3, 2019 at 3:55 AM ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote: On 2019-12-02 07:02, The Sidhekin wrote: > > On Mon, Dec 2, 2019 at 11:07 AM ToddAndMargo via perl6-users > mailto:perl6-us...@perl.org>

Re: Quoting issue in Windows

2019-12-03 Thread Veesh Goldman
i'm on linux and single quotes behave like they're supposed to, and only escape a single quote with a backslash. Are you sure the issue you're having isn't with the command line or something? On Tue, Dec 3, 2019 at 3:55 AM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > On

Re: Quoting issue in Windows

2019-12-02 Thread ToddAndMargo via perl6-users
On 2019-12-02 07:02, The Sidhekin wrote: On Mon, Dec 2, 2019 at 11:07 AM ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote: What is the world is the Q doing in Q'\'? https://docs.perl6.org/language/quoting   It would be clearer to write it as Q[\], I guess. Eirik

Re: Quoting issue in Windows

2019-12-02 Thread ToddAndMargo via perl6-users
On 2019-12-02 07:02, The Sidhekin wrote: On Mon, Dec 2, 2019 at 11:07 AM ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote: What is the world is the Q doing in Q'\'? https://docs.perl6.org/language/quoting   It would be clearer to write it as Q[\], I guess. Eirik

Re: Quoting issue in Windows

2019-12-02 Thread The Sidhekin
On Mon, Dec 2, 2019 at 11:07 AM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > > What is the world is the Q doing in Q'\'? > https://docs.perl6.org/language/quoting It would be clearer to write it as Q[\], I guess. Eirik

Re: Quoting issue in Windows

2019-12-02 Thread ToddAndMargo via perl6-users
On 2019-12-01 19:28, yary wrote: None of the examples in the earlier emails were on the command line. Please only use the examples in my prior message in this thread inside a program file. Using these on the command-line is outside the scope of what I want to deal with here. Windows quoting

Re: Quoting issue in Windows

2019-12-01 Thread yary
None of the examples in the earlier emails were on the command line. Please only use the examples in my prior message in this thread inside a program file. Using these on the command-line is outside the scope of what I want to deal with here. Windows quoting on the command line is enough of a

Re: Quoting issue in Windows

2019-12-01 Thread ToddAndMargo via perl6-users
On 2019-12-01 12:12, yary wrote: Hi Todd, Going back to the original post-     print( "Drive $Drive" ~ ":" ~ '\' ~ " dismounted\n\n" ); Inside a single quote, the \' combination is how you make a single quote, eg     $ perl6     > 'Saying \'hello\' to you'     Saying 'hello' to you ways

Re: Quoting issue in Windows

2019-12-01 Thread yary
Hi Todd, Going back to the original post- print( "Drive $Drive" ~ ":" ~ '\' ~ " dismounted\n\n" ); Inside a single quote, the \' combination is how you make a single quote, eg $ perl6 > 'Saying \'hello\' to you' Saying 'hello' to you ways around it- print( "Drive

Re: Quoting issue in Windows

2019-11-30 Thread ToddAndMargo via perl6-users
On 2019-11-30 06:28, Timo Paulssen wrote: On 30/11/2019 09:05, ToddAndMargo via perl6-users wrote: One of the weirdest was for @Result.kv -> $I, $Line {    if $I % 2 = 0 being told I could not change an immutable object. Here you're trying to assign 0 to the result of $I % 2, if that's

Re: Quoting issue in Windows

2019-11-30 Thread ToddAndMargo via perl6-users
On 2019-11-30 08:37, Veesh Goldman wrote: Also, you may want to use the divisibility operator %% instead of modulo. I think     if $i %% 2 Is clearer to read. Hi Veesh, Indeed! Thank you. Modulus (%) is burned into my head. Now all I have to do is remember divisible (%%). :-) Thank you.

Re: Quoting issue in Windows

2019-11-30 Thread ToddAndMargo via perl6-users
On 2019-11-30 00:57, William Michels via perl6-users wrote: Hi Todd, You should definitely write up some code and post it here on the mailing list, so we all can test it. I found an error "Cannot modify an immutable Match" a while back (Oct 2019), and it turned out to be a bug:

Re: Quoting issue in Windows

2019-11-30 Thread Veesh Goldman
Also, you may want to use the divisibility operator %% instead of modulo. I think if $i %% 2 Is clearer to read. On Sat, Nov 30, 2019, 16:28 Timo Paulssen wrote: > > On 30/11/2019 09:05, ToddAndMargo via perl6-users wrote: > > One of the weirdest was > > > > for @Result.kv -> $I, $Line { >

Re: Quoting issue in Windows

2019-11-30 Thread Timo Paulssen
On 30/11/2019 09:05, ToddAndMargo via perl6-users wrote: > One of the weirdest was > > for @Result.kv -> $I, $Line { >    if $I % 2 = 0 > > being told I could not change an immutable object. Here you're trying to assign 0 to the result of $I % 2, if that's actually exactly the code. You want

Re: Quoting issue in Windows

2019-11-30 Thread William Michels via perl6-users
On Sat, Nov 30, 2019 at 12:05 AM ToddAndMargo via perl6-users wrote: > > On 2019-11-29 23:49, William Michels via perl6-users wrote: > > On Fri, Nov 29, 2019 at 8:33 PM ToddAndMargo via perl6-users > > wrote: > >> > >> Hi All, > >> > >> Windows 7, sp1, x64 > >> rakudo-star-2019.03-x86_64

Re: Quoting issue in Windows

2019-11-30 Thread ToddAndMargo via perl6-users
On 2019-11-29 23:49, William Michels via perl6-users wrote: On Fri, Nov 29, 2019 at 8:33 PM ToddAndMargo via perl6-users wrote: Hi All, Windows 7, sp1, x64 rakudo-star-2019.03-x86_64 (JIT).msi Why does this type of line keep giving me heartburn? print( "Drive $Drive" ~ ":" ~ '\' ~ "

Re: Quoting issue in Windows

2019-11-29 Thread William Michels via perl6-users
On Fri, Nov 29, 2019 at 8:33 PM ToddAndMargo via perl6-users wrote: > > Hi All, > > Windows 7, sp1, x64 > rakudo-star-2019.03-x86_64 (JIT).msi > > Why does this type of line keep giving me heartburn? > > print( "Drive $Drive" ~ ":" ~ '\' ~ " dismounted\n\n" ); > > K:\Windows\NtUtil>perl6 -c