File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ my class X::P6doc is Exception {
10
10
11
11
constant DEBUG = % * ENV <P6DOC_DEBUG >;
12
12
sub findbin () returns Str {
13
- $ * PROGRAM_NAME . subst (rx {<- [ / ] >+ $ }, ' ' );
13
+ $ * PROGRAM_NAME . subst (rx {<- [ /\\ ] >+ $ }, ' ' );
14
14
}
15
15
16
16
sub tempfile () {
@@ -45,10 +45,10 @@ sub locate-module(Str $modulename) {
45
45
}
46
46
47
47
sub show-docs (Str $ path , : $ section ) {
48
- my $ pager = % * ENV <PAGER > // ' less' ;
48
+ my $ pager = % * ENV <PAGER > // ( $ * OS eq ' MSWin32 ?? ' more' !! ' less' ) ;
49
49
if $ section . defined {
50
50
% * ENV <PERL6_POD_HEADING > = $ section ;
51
- my $ i = findbin() ~ ' ../lib' ;
51
+ my $ i = findbin() ~ ' ../lib' ;
52
52
say " launching 'perl6 -I$ i --doc=SectionFilter $ path | $ pager '" if DEBUG;
53
53
shell " perl6 -I$ i --doc=SectionFilter $ path | $ pager" ;
54
54
}
You can’t perform that action at this time.
0 commit comments