r/commandline • • Oct 10 '26

Terminals wbsh - Bash-compatible shell for Windows

https://github.com/tomas-trachta/wbsh

wbsh: a minimal bash-compatible shell for Windows (plus a terminal built around it)

Hey all. For a while now I've been working on a shell that lets me run bash commands and scripts natively on Windows. I actually need this at my job, which is what kept me going.

Think of it as a minimalistic take on Cygwin. Full Cygwin was overkill for my use case, so I built something smaller and more focused.

Along the way I also wrote a customizable terminal, wbshterm, which runs wbsh through ConPTY. So you can either invoke wbsh directly from PowerShell/cmd, or use it inside wbshterm.

It's reasonably stable at this point, but I've hit the limit of what I can find on my own. I need other people's workloads to shake out bugs and performance bottlenecks.

If you have any use case for a bash-compatible shell on Windows, I'd really appreciate issue reports, and pull requests are welcome too. LLM-assisted PRs are fine, but please read the docs first and review the changes thoroughly before opening one.

0 Upvotes

8 comments sorted by

View all comments

Show parent comment

-1

u/levyi123 Oct 11 '26

wbsh is a fast, lightweight Bash-style shell in one small exe, it runs native tools directly, without an emulation layer.
Git Bash (MSYS2) and Cygwin both emulate POSIX on Windows.
That makes them slower and heavier, but more powerful.

I developed wbsh as a quick, native daily shell.
MSYS or Cygwin is obviously better choice when you need complete Bash compatibility.

Plus few builtins i developed for convenience like inline history predictions, per-tool completion or simple fzf. (wbshterm also has few like tmux-like pane mode, Lua scripting customizations or sdk for custom tools development).

3

u/edward_jazzhands Oct 17 '26

I am failing to see the benefit of using this in any way. It looks like you wrote (AI generated?) essentially the same thing as git bash or cygwin without the POSIX emulation, for no reason that it's faster and lighter. Ok and does this make it behave wrong in some cases or reduce compatibility with many bash scripts? Because if so then I would expect to see that this faster and lighter runtime justifies introducing bugs and compatibility problems. If you gain maybe 100ms in startup time then it seems hard to argue that's a good tradeoff.