Skip to content

Web simulator shows incorrect echo command for s01 demo #40

@lei-zhenyu

Description

@lei-zhenyu

Bug Description

In the s01 web simulator, the demo uses the following command to create hello.py:

echo 'print("Hello, World!")' > hello.py

This actually writes 'print("Hello, World!")' into the file (with single quotes),
not print("Hello, World!"). As a result, running python hello.py would produce
no output because the file contains a string literal, not valid Python code.

Expected

The file hello.py should contain:

print("Hello, World!")

Actual

The file hello.py actually contains:

'print("Hello, World!")'

Suggested Fix

Use either of these commands instead:

echo print("Hello, World!") > hello.py

or

printf 'print("Hello, World!")\n' > hello.py

Environment

  • Discovered via real agent execution on Windows (Git Bash)
  • Also reproducible on Linux/Mac with standard bash

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