Skip to content

Endless loop on EOF in shell #9946

@mroethke

Description

@mroethke

Description

The shell enters an endless loop printing the prompt character when it encounters EOF at least with the native port.

Steps to reproduce the issue

  1. compile and run Tutorial task 01
  2. press ctrl+d

Expected results

I expected the shell to close

Actual results

The prompt character ">" is printed in an endless loop

Versions

      Operating system: Linux
      native gcc: gcc (GCC) 8.2.1 20180831
      msp430-gcc: missing/error
      avr-gcc: missing/error
      arm-none-eabi-gcc: arm-none-eabi-gcc (Arch Repository) 8.2.0
      mips-mti-elf-gcc: missing/error
      clang: clang version 6.0.1 (tags/RELEASE_601/final)
      arm-none-eabi-newlib: "3.0.0"
      mips-mti-elf-newlib: missing/error
      avr-libc: missing/error (missing/error)
      cppcheck: Cppcheck 1.84
      coccinelle: missing
      git: git version 2.19.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: nativePlatform: This PR/issue effects the native platformType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions