Skip to content

feat(windows): improve errors with CR character #1372

Description

@lucascolley

brush version

brush 0.4.0 (cargo:0.4.0)

bash version (for comparison)

GNU bash, version 5.3.15(1)-release (x86_64-pc-cygwin)

Platform / OS

Windows

Steps to reproduce

bat foo.sh
─────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
     │ File: foo.sh
─────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1 │ echo "hi"
   2 │
   3 │ echo "world"
─────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Actual behavior (brush)

brush foo.sh
hi
error: command not found:
world

Expected behavior

bash foo.sh
hi
world

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: compatRelated to compatibility with standard shellsbugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions