Skip to content

rc6 won't execute script if it's given as /dev/stdin (and won't report error either) #17

@findepi

Description

@findepi

rc5

$ bash -c "graalpython /dev/stdin <<<'print(2**42)'"
Please note: This Python implementation is in the very early stages, and can run little more than basic benchmarks at this point.
4398046511104

$ echo 'print(2**42)' | graalpython /dev/stdin
Please note: This Python implementation is in the very early stages, and can run little more than basic benchmarks at this point.
4398046511104

rc6

$ bash -c "graalpython /dev/stdin <<<'print(2**42)'"
Please note: This Python implementation is in the very early stages, and can run little more than basic benchmarks at this point.
4398046511104

$ echo 'print(2**42)' | graalpython /dev/stdin
Please note: This Python implementation is in the very early stages, and can run little more than basic benchmarks at this point.

i.e. the second call didn't print anything

Repro env

For reproducing, I use isolated docker environment.

FROM debian:stable

ARG GRAAL_VERSION=1.0.0-rc6

RUN apt-get update && \
    apt-get install -y curl && \
    apt-get clean && rm -r "/var/lib/apt/lists"/*

RUN curl -fsSL https://github.com/oracle/graal/releases/download/vm-${GRAAL_VERSION}/graalvm-ce-${GRAAL_VERSION}-linux-amd64.tar.gz -o graalvm.tar.gz
RUN tar xf graalvm.tar.gz
ENV PATH=/graalvm-ce-${GRAAL_VERSION}/bin:/bin:/usr/bin
RUN gu install -c org.graalvm.python

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions