New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
non-interactive REPL mode breaks STDIN #1824
Comments
I already added:
in my local repo and running the same commands but I'm still getting the same output. I'm not sure what I should do next so any advice would be appreciated. |
Are you sure you rebuilt nqp and rakudo correctly? Which commands did you use? |
I just used |
Try this: In your
Then in your
That should make the fix available in your rakudo and fix the bug. You can then run:
To run the spectest to ensure there are no new errors. Alternatively, there's also Z-Script you could use: Install and initialize in git clone https://github.com/zoffixznet/z ~/zscript &&
cd ~/zscript &&
zef --depsonly install .
echo 'export PATH="$HOME/zscript/bin:$PATH"' >> ~/.bashrc
. ~/.bashrc
z init ~/R Then swap nqp remote to your fork (you need to fork it. Click "Fork" button at the top right of the page): cd ~/R/nqp/
git remote remove origin
git remote add origin https://github.com/uzluisf/nqp Then make the change, then run:
That will rebuild NQP and rakudo and the change should fix the bug. Then you can run
To run the spectest. Then commit the fix:
Type a good commit message, then |
So I ran the commands to rebuild nqp and rakudo and everything went apparently fine. After that, I executed |
But is |
Yes, you're totally right. I was running the system's rakudo not the one I built. Sorry for that misunderstanding. Regarding the commit message, can I reference the issue? I'm not really sure what I should put for the commit message. |
Yeah, if you include a link to it, GitHub will even reference the commit on this Issue. Message could be something like
|
And the cause is:
And the fix is to stick
unless $filename eq '-'
for the.close
line in NQP (a few lines up, we use the same condition to set that handle to stdin)The text was updated successfully, but these errors were encountered: