Re: run() not capturing exitcode properly?

2017-05-30 Thread Marcel Timmerman
Hi Exit code is set after closing one of the output channels. If you close both, the errorcode is reset to 0 again. (This might be a bug though) my $p = run "ls", "dadsad", :out, :err; say $p.err.lines; ---> (ls: cannot access 'dadsad': No such file or directory) $p.out.close; $p.exitcode; -

command auto-completion in perl6 shell

2017-05-30 Thread Sebastien Moretti
Hi I wonder if there is auto-completion in the Perl6 REPL - such as what is found in Eclipse (Ctrl-space) or in vim (Ctrl+n) - for variables, methods, ... e.g perl6 > say 42. or > my $result = 8; > say $res Thanks -- Sébastien Moretti

Re: command auto-completion in perl6 shell

2017-05-30 Thread Shrivats
On 05/30/2017 08:33 PM, Sebastien Moretti wrote: > Hi > > I wonder if there is auto-completion in the Perl6 REPL - such as what is > found in Eclipse (Ctrl-space) or in vim (Ctrl+n) - for variables, > methods, ... > > e.g > perl6 > > say 42. > or > > my $result = 8; > > say $res > Hi, As it st

Re: command auto-completion in perl6 shell

2017-05-30 Thread Sebastien Moretti
On 05/30/2017 05:39 PM, Shrivats wrote: On 05/30/2017 08:33 PM, Sebastien Moretti wrote: > Hi > > I wonder if there is auto-completion in the Perl6 REPL - such as what is > found in Eclipse (Ctrl-space) or in vim (Ctrl+n) - for variables, > methods, ... > > e.g > perl6 > > say 42. > or

Re: command auto-completion in perl6 shell

2017-05-30 Thread Rob Hoelz
Completion (albeit in a limited form) is available if you install the Linenoise module. Completion for Readline is a little trickier, since GNU Readline uses a global variable to store the function reference used to populate the completion list. When I was working on the REPL stuff, manipulatin

Re: command auto-completion in perl6 shell

2017-05-30 Thread Parrot Raiser
The REPL's almost an independent project. Can it be made modular, to reduce the coupling between it and the language?

Re: command auto-completion in perl6 shell

2017-05-30 Thread Rob Hoelz
It's pretty modular already; only a little more work would be needed to have it loaded as an external module. On Tue, 30 May 2017 12:34:08 -0400 Parrot Raiser <1parr...@gmail.com> wrote: > The REPL's almost an independent project. > > Can it be made modular, to reduce the coupling between it an

Perl6 shell, Was: command auto-completion in perl6 shell

2017-05-30 Thread Richard Hainsworth
Please do not weaken the link between REPL and perl6 ! The ability to test perl6 snippets very quickly is something I find very useful. And to get this I type 'perl6'. Easy to remember. (I have been following perl6 since the very beginning, and installed 'pug'. Since perl6 has been evolving,