Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Writing Shell Scripts in Nushell (jpospisil.com)
3 points by mpweiher on May 26, 2023 | hide | past | favorite | 2 comments


Nushell is amazing. I tried using it instead of fish for my projects' scripts, and I really like the language. I still prefer fish for interactive usage (mature ecosystem), but Nushell is an excellent scripting language.

My favourite feature is the "free" argument parsing with long and short options, runtime type checking and great error reporting. Adding options to scripts is painless, and it led me to Typer[0], a Python library that does something similar.

However, I did not stick with it and returned to fish. I don't have a problem with POSIX compatibility, obviously. I'll use whatever I think is comfortable, and my users can install fish along with the other tools necessary to hack on the project.

The "problem" is that Nushell is being developed frantically: semantics and syntax are often changed, and the documentation is not ideal. Because of this, a script I wrote today might not work if someone tried to run it in a month or two.

That being said, it is a great language already. I appreciate the vision, and I'm looking forward to when it becomes more stable.

[0]: typer.tiangolo.com


Good introduction. Love nushell.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: