Skip to content

Conversation

@mlainez
Copy link
Contributor

@mlainez mlainez commented Nov 27, 2025

Hi,

I've used this when debugging my Nerves system. It redirects all lines from IO.gets to cmd. It's simply more convenient when debugging the Buildroot part of new Nerves systems.

It might be useful to others.

@mlainez mlainez changed the title Add a fake shell cmd to avoir using cmd all the time Add a fake shell command to avoid using cmd all the time Nov 27, 2025
@fhunleth
Copy link
Collaborator

Thanks for contributing this!

This is so simple and the fact that you find it useful, means that it's good to include.

Overall, I'd either prefer to make the IEx session more ergonomic or offer an alternative Erlang shell with an sh-like syntax that includes tab completion and handles ctrl+c.

I'm also going to pay more attention to what I do when porting, since I don't run cmd that much. From observing others, the only guess that I have is that I reach for the File module so that I can get path completion. cmd's lack of path completion especially when navigating /sys has been a big limitation for me.

The CI issues look easy and very specific to unique things in this project. Let me try to fix real quick and then I'll merge when CI passes.

@fhunleth fhunleth force-pushed the main branch 2 times, most recently from e44230f to d357d39 Compare November 28, 2025 17:03
@mlainez
Copy link
Contributor Author

mlainez commented Nov 28, 2025

It would indeed be great to have a way to use IEx almost like a regular shell. Having all system binaries there by default and path completion with tab would be awesome. It's worth investigating.

@fhunleth fhunleth merged commit dfe739b into elixir-toolshed:main Nov 28, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants