Skip to content

Multi-line command editing does not work in the demo site #161

@brlin-tw

Description

@brlin-tw

Steps to reproduce

  1. Open the https://justbash.dev/ page.

  2. In the command prompt, type:

    for file in *; do
  3. Press ENTER.

Current behavior

The following error returned:

```text
bash: syntax error: Parse error at 1:18: Expected DONE, got EOF
```

Expected behavior

No errors returned and the secondary prompt(PS2) appears:

```text
$ for file in *; do
> 
```

as in the regular Bash shell.

Additional info

When the multi-line command is pasted in the problem is not reproduced:

$ for file in *; do
    echo "${file}"
done
AGENTS.md
LICENSE
README.md
bash-tool
dirs
just-bash
package.json
wtf-is-this.md

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