Raku opens a notepad when executing a .bat

2022-12-06 Thread ToddAndMargo via perl6-users
Hi All, Windows Pro Chromebook Edition 22H2 (W11) raku -v Welcome to RakudoΓäó v2022.07. When ever I run the following, it opens a Notepad with the text of the calling raku program. raku -e "use lib '.'; use NativeWinUtils :RunCmd; say RunCmd(Q[ls]);" This is RunCmd sub RunCmd( Str $Command

Re: Raku opens a notepad when executing a .bat

2022-12-06 Thread Ralph Mellor
Please confirm that: * Entering `ls` at the command line prompt does what it says on the tin, it does not open notepad. * A Raku program that consists of the single line `qqx 'ls'` does what it says on the tin, and does not open notepad. If those are true, then this code: ``` use lib '.'; u

Re: Raku opens a notepad when executing a .bat

2022-12-06 Thread ToddAndMargo via perl6-users
On 12/6/22 02:40, Ralph Mellor wrote: Please confirm that: * Entering `ls` at the command line prompt does what it says on the tin, it does not open notepad. * A Raku program that consists of the single line `qqx 'ls'` does what it says on the tin, and does not open notepad. If those are

Re: Raku opens a notepad when executing a .bat

2022-12-06 Thread ToddAndMargo via perl6-users
On 12/6/22 03:13, ToddAndMargo via perl6-users wrote: On 12/6/22 02:40, Ralph Mellor wrote: Please confirm that: * Entering `ls` at the command line prompt does what it says    on the tin, it does not open notepad. * A Raku program that consists of the single line `qqx 'ls'` does    what it sa

Re: Raku opens a notepad when executing a .bat

2022-12-06 Thread ToddAndMargo via perl6-users
On 12/6/22 03:31, ToddAndMargo via perl6-users wrote: On 12/6/22 03:13, ToddAndMargo via perl6-users wrote: On 12/6/22 02:40, Ralph Mellor wrote: Please confirm that: * Entering `ls` at the command line prompt does what it says    on the tin, it does not open notepad. * A Raku program that co

Re: Raku opens a notepad when executing a .bat

2022-12-06 Thread ToddAndMargo via perl6-users
On 12/6/22 03:31, ToddAndMargo via perl6-users wrote: This is obviously not a raku issue, but a Windows issue. I think I misspoke. I do believe qqx is trying to run the sub from the module. I will put together a few tests in a couple of days to see if I can get it to repeat, then I will tag i

Re: Raku opens a notepad when executing a .bat

2022-12-06 Thread ToddAndMargo via perl6-users
On 12/6/22 01:44, ToddAndMargo via perl6-users wrote: Hi All, Windows Pro Chromebook Edition 22H2  (W11) raku -v  Welcome to RakudoΓäó v2022.07. When ever I run the following, it opens a Notepad with the text of the calling raku program. raku -e "use lib '.'; use NativeWinUtils :RunCmd; say Ru

Re: Raku opens a notepad when executing a .bat

2022-12-06 Thread ToddAndMargo via perl6-users
On 12/6/22 07:31, ToddAndMargo via perl6-users wrote: On 12/6/22 01:44, ToddAndMargo via perl6-users wrote: Hi All, Windows Pro Chromebook Edition 22H2  (W11) raku -v  Welcome to RakudoΓäó v2022.07. When ever I run the following, it opens a Notepad with the text of the calling raku program. r

Re: pointer confusion

2022-12-06 Thread ToddAndMargo via perl6-users
On 12/5/22 16:35, Ralph Mellor wrote: On Mon, Dec 5, 2022 at 10:20 PM ToddAndMargo via perl6-users wrote: use NativeCall; my Pointer $foo .= new: 42; say $foo; # NativeCall::Types::Pointer<0x2a> print $foo; # NativeCall::Types::Pointer<5895604297984> `say` concatenates the `.gist`s

Re: pointer confusion

2022-12-06 Thread ToddAndMargo via perl6-users
On 12/6/22 15:40, ToddAndMargo via perl6-users wrote: On 12/5/22 16:35, Ralph Mellor wrote: On Mon, Dec 5, 2022 at 10:20 PM ToddAndMargo via perl6-users wrote: use NativeCall; my Pointer $foo .= new: 42; say $foo;   # NativeCall::Types::Pointer<0x2a> print $foo; # NativeCall::Types::Pointer<

Re: pointer confusion

2022-12-06 Thread Ralph Mellor
On Tue, Dec 6, 2022 at 11:55 PM ToddAndMargo via perl6-users wrote: > > > Oh, I figured out the "*ppX" double pointer. > "Pointer[Pointer]". Ironically I wrote that in a comment on your SO question before any other comments or the answers were written. But it was just a wild guess. I don't kn