env?

Hi All,

Fedora 13 (Linux)
rakudo-pkg-Fedora31-2019.07.1-03.x86_64.rpm

At the top of all my Perl 6 programs, I place
#!/usr/bin/env perl6

So I decided to run env by itself and see what I got:

      $ /usr/bin/env perl6
      You may want to `zef install Readline` or `zef install
          Linenoise` or use rlwrap for a line editor

      To exit type 'exit' or '^D'

Is this suppose to happen?

Many thanks,
-T


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When you say, "I wrote a program that
crashed Windows," people just stare at
you blankly and say, "Hey, I got those
with the system, for free."
      -- Linus Torvalds
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0
perl6
11/4/2019 5:26:11 AM
perl.perl6.users 1233 articles. 0 followers. Follow

4 Replies
11 Views

Similar Articles

[PageSpeed] 54

I've seen this message as well. I believe it's the default message you
get when you start up the Perl6 (Raku) REPL, but don't have Readline
or Linenoise installed (or your machine needs help knowing where to
look).

Maybe try 'echo $PATH' at a terminal prompt, and see if your new
machine has the same directory listings as your old machine?

HTH, Bill.



On Sun, Nov 3, 2019 at 9:26 PM ToddAndMargo via perl6-users
<perl6-users@perl.org> wrote:
>
> Hi All,
>
> Fedora 13 (Linux)
> rakudo-pkg-Fedora31-2019.07.1-03.x86_64.rpm
>
> At the top of all my Perl 6 programs, I place
> #!/usr/bin/env perl6
>
> So I decided to run env by itself and see what I got:
>
>       $ /usr/bin/env perl6
>       You may want to `zef install Readline` or `zef install
>           Linenoise` or use rlwrap for a line editor
>
>       To exit type 'exit' or '^D'
>
> Is this suppose to happen?
>
> Many thanks,
> -T
>
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> When you say, "I wrote a program that
> crashed Windows," people just stare at
> you blankly and say, "Hey, I got those
> with the system, for free."
>       -- Linus Torvalds
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0
perl6
11/4/2019 6:25:27 AM
On 11/3/19 10:25 PM, William Michels via perl6-users wrote:
> I've seen this message as well. I believe it's the default message you
> get when you start up the Perl6 (Raku) REPL, but don't have Readline
> or Linenoise installed (or your machine needs help knowing where to
> look).
> 
> Maybe try 'echo $PATH' at a terminal prompt, and see if your new
> machine has the same directory listings as your old machine?
> 
> HTH, Bill.



As long as it is "normal".

Thank you!
0
perl6
11/4/2019 7:58:57 AM
--_000_SN6PR09MB37905D09CBC9F697647BEE30C07F0SN6PR09MB3790namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

> At the top of all my Perl 6 programs, I place
> #!/usr/bin/env perl6
>
> So I decided to run env by itself and see what I got:
>
>       $ /usr/bin/env perl6
>       You may want to `zef install Readline` or `zef install
>           Linenoise` or use rlwrap for a line editor
>
>       To exit type 'exit' or '^D'
>
> Is this suppose to happen?

Yes. The "shebang" line
 #!/usr/bin/env perl6

means "use the env to find the perl6 exe and run it" just as:
#!/usr/local/bin/perl6

does, only that's more specific.  So, you're seeing P6 in interactive mode,=
 and it's advising you that w/o Linenoise or Readline, you won't be able to=
 use "<up arrow>" etc for editing in interactive mode.
$ man env
NAME
       env - run a program in a modified environment

You can do
$ which perl6
to see where the exe might be found, too.
________________________________
From: ToddAndMargo via perl6-users <perl6-users@perl.org>
Sent: Sunday, November 3, 2019 11:26 PM
To: perl6-users <perl6-users@perl.org>
Subject: env?

Hi All,

Fedora 13 (Linux)
rakudo-pkg-Fedora31-2019.07.1-03.x86_64.rpm

At the top of all my Perl 6 programs, I place
#!/usr/bin/env perl6

So I decided to run env by itself and see what I got:

      $ /usr/bin/env perl6
      You may want to `zef install Readline` or `zef install
          Linenoise` or use rlwrap for a line editor

      To exit type 'exit' or '^D'

Is this suppose to happen?

Many thanks,
-T


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When you say, "I wrote a program that
crashed Windows," people just stare at
you blankly and say, "Hey, I got those
with the system, for free."
      -- Linus Torvalds
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--_000_SN6PR09MB37905D09CBC9F697647BEE30C07F0SN6PR09MB3790namp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"font-family: &quot;Times New Roman&quot;, Times, serif; font-=
size: 12pt; color: rgb(0, 0, 0);">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant">&gt;
 At the top of all my Perl 6 programs, I place</span><br style=3D"color: rg=
b(32, 31, 30); font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West =
European)&quot;, &quot;Segoe UI&quot;, -apple-system, BlinkMacSystemFont, R=
oboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 14.6667px; backgr=
ound-color: rgb(255, 255, 255)">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant">&gt;
 #!/usr/bin/env perl6</span><br style=3D"color: rgb(32, 31, 30); font-famil=
y: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot;, &quot;Se=
goe UI&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica Ne=
ue&quot;, sans-serif; font-size: 14.6667px; background-color: rgb(255, 255,=
 255)">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant">&gt;</span><br style=3D"color: rgb(32, 31, 30); font-family: &quot=
;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&q=
uot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;=
, sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255)">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant">&gt;
 So I decided to run env by itself and see what I got:</span><br style=3D"c=
olor: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &quot;Segoe UI We=
b (West European)&quot;, &quot;Segoe UI&quot;, -apple-system, BlinkMacSyste=
mFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 14.6667px=
; background-color: rgb(255, 255, 255)">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant">&gt;</span><br style=3D"color: rgb(32, 31, 30); font-family: &quot=
;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&q=
uot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;=
, sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255)">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 $ /usr/bin/env perl6</span><br style=3D"color: rgb(32, 31, 30); font-famil=
y: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot;, &quot;Se=
goe UI&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica Ne=
ue&quot;, sans-serif; font-size: 14.6667px; background-color: rgb(255, 255,=
 255)">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 You may want to `zef install Readline` or `zef install</span><br style=3D"=
color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &quot;Segoe UI W=
eb (West European)&quot;, &quot;Segoe UI&quot;, -apple-system, BlinkMacSyst=
emFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 14.6667p=
x; background-color: rgb(255, 255, 255)">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 Linenoise` or use rlwrap for a line editor</span><br style=3D"color: rgb(3=
2, 31, 30); font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West Eur=
opean)&quot;, &quot;Segoe UI&quot;, -apple-system, BlinkMacSystemFont, Robo=
to, &quot;Helvetica Neue&quot;, sans-serif; font-size: 14.6667px; backgroun=
d-color: rgb(255, 255, 255)">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant">&gt;</span><br style=3D"color: rgb(32, 31, 30); font-family: &quot=
;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&q=
uot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;=
, sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255)">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 To exit type 'exit' or '^D'</span><br style=3D"color: rgb(32, 31, 30); fon=
t-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot;, &=
quot;Segoe UI&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helve=
tica Neue&quot;, sans-serif; font-size: 14.6667px; background-color: rgb(25=
5, 255, 255)">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant">&gt;</span><br style=3D"color: rgb(32, 31, 30); font-family: &quot=
;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&q=
uot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;=
, sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255)">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant">&gt;
 Is this suppose to happen?</span><br>
</div>
<div style=3D"font-family: &quot;Times New Roman&quot;, Times, serif; font-=
size: 12pt; color: rgb(0, 0, 0);">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant"><br>
</span></div>
<div style=3D"font-family: &quot;Times New Roman&quot;, Times, serif; font-=
size: 12pt; color: rgb(0, 0, 0);">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant">Yes.
 The &quot;shebang&quot; line</span></div>
<div style=3D"font-family: &quot;Times New Roman&quot;, Times, serif; font-=
size: 12pt; color: rgb(0, 0, 0);">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant"><span style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI W=
eb (West European)&quot;, &quot;Segoe UI&quot;, -apple-system, BlinkMacSyst=
emFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; background-color: r=
gb(255, 255, 255); display: inline !important"><span>&nbsp;</span>#!/usr/bi=
n/env
 perl6</span><br>
</span></div>
<div style=3D"font-family: &quot;Times New Roman&quot;, Times, serif; font-=
size: 12pt; color: rgb(0, 0, 0);">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant"><span style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI W=
eb (West European)&quot;, &quot;Segoe UI&quot;, -apple-system, BlinkMacSyst=
emFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; background-color: r=
gb(255, 255, 255); display: inline !important"><br>
</span></span></div>
<div style=3D"font-family: &quot;Times New Roman&quot;, Times, serif; font-=
size: 12pt; color: rgb(0, 0, 0);">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant"><span style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI W=
eb (West European)&quot;, &quot;Segoe UI&quot;, -apple-system, BlinkMacSyst=
emFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; background-color: r=
gb(255, 255, 255); display: inline !important">means
 &quot;use the env to find the perl6 exe and run it&quot; just as:</span></=
span></div>
<div style=3D"font-family: &quot;Times New Roman&quot;, Times, serif; font-=
size: 12pt; color: rgb(0, 0, 0);">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant"><span style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI W=
eb (West European)&quot;, &quot;Segoe UI&quot;, -apple-system, BlinkMacSyst=
emFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; background-color: r=
gb(255, 255, 255); display: inline !important">#!/usr/local/bin/perl6</span=
></span></div>
<div style=3D"font-family: &quot;Times New Roman&quot;, Times, serif; font-=
size: 12pt; color: rgb(0, 0, 0);">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant"><span style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI W=
eb (West European)&quot;, &quot;Segoe UI&quot;, -apple-system, BlinkMacSyst=
emFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; background-color: r=
gb(255, 255, 255); display: inline !important"><br>
</span></span></div>
<div style=3D"font-family: &quot;Times New Roman&quot;, Times, serif; font-=
size: 12pt; color: rgb(0, 0, 0);">
<span style=3D"color: rgb(32, 31, 30); font-family: &quot;Segoe UI&quot;, &=
quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-syste=
m, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font=
-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !im=
portant"><span style=3D"font-family: &quot;Segoe UI&quot;, &quot;Segoe UI W=
eb (West European)&quot;, &quot;Segoe UI&quot;, -apple-system, BlinkMacSyst=
emFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; background-color: r=
gb(255, 255, 255); display: inline !important">does,
 only that's more specific.&nbsp; So, you're seeing P6 in interactive mode,=
 and it's advising you that w/o Linenoise or Readline, you won't be able to=
 use &quot;&lt;up arrow&gt;&quot; etc for editing in interactive mode.&nbsp=
;&nbsp;</span></span></div>
<div style=3D""><font color=3D"#201f1e"><span style=3D"font-size: 14.6667px=
;">$ man env</span></font></div>
<div style=3D""><font color=3D"#201f1e"><span style=3D"font-size: 14.6667px=
;"><span>NAME<br>
</span>
<div>&nbsp; &nbsp; &nbsp; &nbsp;env - run a program in a modified environme=
nt<br>
</div>
<div><br>
</div>
<span></span>You can do&nbsp;</span></font></div>
<div style=3D""><font color=3D"#201f1e"><span style=3D"font-size: 14.6667px=
;">$ which perl6</span></font></div>
<div style=3D""><font color=3D"#201f1e"><span style=3D"font-size: 14.6667px=
;">to see where the exe might be found, too.</span></font></div>
<div id=3D"appendonsend"></div>
<hr style=3D"display:inline-block;width:98%" tabindex=3D"-1">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st=
yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> ToddAndMargo via perl=
6-users &lt;perl6-users@perl.org&gt;<br>
<b>Sent:</b> Sunday, November 3, 2019 11:26 PM<br>
<b>To:</b> perl6-users &lt;perl6-users@perl.org&gt;<br>
<b>Subject:</b> env?</font>
<div>&nbsp;</div>
</div>
<div class=3D"BodyFragment"><font size=3D"2"><span style=3D"font-size:11pt;=
">
<div class=3D"PlainText">Hi All,<br>
<br>
Fedora 13 (Linux)<br>
rakudo-pkg-Fedora31-2019.07.1-03.x86_64.rpm<br>
<br>
At the top of all my Perl 6 programs, I place<br>
#!/usr/bin/env perl6<br>
<br>
So I decided to run env by itself and see what I got:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ /usr/bin/env perl6<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; You may want to `zef install Readline` or `z=
ef install<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Linenoise` or use rl=
wrap for a line editor<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To exit type 'exit' or '^D'<br>
<br>
Is this suppose to happen?<br>
<br>
Many thanks,<br>
-T<br>
<br>
<br>
-- <br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
When you say, &quot;I wrote a program that<br>
crashed Windows,&quot; people just stare at<br>
you blankly and say, &quot;Hey, I got those<br>
with the system, for free.&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Linus Torvalds<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
</div>
</span></font></div>
</body>
</html>

--_000_SN6PR09MB37905D09CBC9F697647BEE30C07F0SN6PR09MB3790namp_--
0
Andy_Bach
11/4/2019 4:40:37 PM
On 11/4/19 8:40 AM, Andy Bach wrote:
>>  At the top of all my Perl 6 programs, I place
>>  #!/usr/bin/env perl6
>>
>>  So I decided to run env by itself and see what I got:
>>
>>      $ /usr/bin/env perl6
>>      You may want to `zef install Readline` or `zef install
>>          Linenoise` or use rlwrap for a line editor
>>
>>      To exit type 'exit' or '^D'
>>
>>  Is this suppose to happen?
>=20
> Yes. The "shebang" line
> #!/usr/bin/env perl6
>=20
> means "use the env to find the perl6 exe and run it" just as:
> #!/usr/local/bin/perl6
>=20
> does, only that's more specific.=C2=A0 So, you're seeing P6 in interact=
ive=20
> mode, and it's advising you that w/o Linenoise or Readline, you won't b=
e=20
> able to use "<up arrow>" etc for editing in interactive mode.
> $ man env
> NAME
>  =C2=A0 =C2=A0 =C2=A0 =C2=A0env - run a program in a modified environme=
nt
>=20
> You can do
> $ which perl6
> to see where the exe might be found, too.

Thank you!

I had to use find to located it.  Then I created links.

     # ls -s /opt/rakudo-pkg/bin/zef   /usr/bin/zef
     # ls -s /opt/rakudo-pkg/bin/perl6 /usr/bin/perl6

Then which found it.

I use env exclusively as the Fedora repo and git use
different paths and I never know what one my customers
are using
0
perl6
11/5/2019 1:51:43 AM
Reply: