Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliases that rely on using ex commands do not work on Windows / Git Bash #125

Open
1 of 3 tasks
wardt7 opened this issue Apr 20, 2022 · 0 comments
Open
1 of 3 tasks
Labels
bug Something isn't working good first issue Good for newcomers minor Not a blocker

Comments

@wardt7
Copy link
Contributor

wardt7 commented Apr 20, 2022

  • I'm submitting a ...

    • bug report
    • feature request
    • support request
  • What is the current behavior?
    Currently, it is impossible to run aliases in scripts/run-aliases.sh that contain ex <container> commands in Windows. This is both due to git bash on windows needing winpty to run docker exec -it commands, but also because executing ex on winpty raises a vi terminal instead of the intended execution in a docker container.

  • If the current behavior is a bug, what are the steps to reproduce?

    • Be on Windows OS / Git Bash
    • Up the environment
    • Execute an alias that uses ex in its function (e.g. integration-test <container>)
  • What is the expected/proposed behavior?
    The alias is executed successfully

  • What is the motivation / use case for changing the behavior?
    Windows developers will not be able to use most aliases otherwise

  • Please tell us about your environment:

    • Common-dev-env version: 1.20.0
    • Operating system (and shell, if not the OS default): Windows / Git Bash
    • Ruby version: v2.5+
  • Any other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, etc):
    In add-aliases.sh, functions that use ex should have a Windows OS check. If the OS is Windows, then use winpty docker exec -it instead of ex. Otherwise use ex.

This would make a good first issue for someone to pick up, if they have access to a windows machine.

@wardt7 wardt7 changed the title Aliases that rely on using "ex" commands do not work on Windows / Git Bash Aliases that rely on using ex commands do not work on Windows / Git Bash Apr 20, 2022
@sichapman sichapman added bug Something isn't working good first issue Good for newcomers minor Not a blocker labels Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers minor Not a blocker
Projects
None yet
Development

No branches or pull requests

2 participants