On 7/27/21 12:21 PM, Elizabeth Mattijsen wrote:

So the deprecation logic is pointing at the wrong line.

Where does this RunNoShellLib.pm6 live?  It's must be something inside that.

Nothing has changed inside it for the last year.

It resides in /home/linuxutil/p6lib

The main program resides in /home/linuxutil

And I call that line from the main program over 100
times without issue.

The error only happens when I call `exit;` from the
main program.  And goes away when I comment out
`# exit;`

This is an odd one for me.

I tried erasing p6lib/.precomp.  No joy.

Here I can reproduce the error.  And without the exit:


$ raku -e 'my $x; my $y;
          use lib "/home/linuxutil/p6lib";
          use RunNoShellLib :RunNoShell;
          ($x,$y)= RunNoShell "pwd";'

Saw 1 occurrence of deprecated code.
================================================================================
Sub RunNoShellAll (from RunNoShellLib) seen at:
  /home/linuxutil/p6lib/RunNoShellLib.pm6 (RunNoShellLib), line 148
Please use exitcode and/or signal methods (status is to be removed in 2022.06) instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!



This is the sub being called:

141: sub RunNoShell( $RunString ) is export( :RunNoShell ) {
142:   # Return both the STDOUT and the return code
143:
144:   my $ReturnStr = "";
145:   my $ReturnErr = "";
146:   my $RtnCode   = 0;
147:
148: ( $ReturnStr, $ReturnErr, $RtnCode ) = RunNoShellAll( $RunString, True, False, True );
149:   return ( $ReturnStr, $RtnCode );
150: }


And it calls RunNoShellAll

36: sub RunNoShellAll( Str $RunString, Bool $StdOut, Bool $StdErr, Bool $Code ) {


Do you see anything that is "depreciate" on any of these line?

Thank you for helping with this,
-T

Reply via email to