News for hackers. Stuff that matters.
Re:Crush: A command line shell that is also a powerful moder... by cnity on Friday August 07, 2020 @05:13AM (#24079941)
Exactly. This is common with shell scripting languages. They feel like some awful duct tape, when in fact the perfect primitive for joining separate concerns already exists (the pipe). Using a nicer language (like modern JS) to perform procedural logic makes perfect sense to me.
Re:Crush: A command line shell that is also a powerful moder... by inshadows on Saturday August 08, 2020 @01:21PM (#24093330)
> Using a nicer language (like modern JS) to perform procedural logic makes perfect sense to me.

# ls | grep foo

This involves two programs written in nicer language (C).

# ls | rg foo

This involves two programs written in nicer language (C & Rust).

Feel free to come up with JS program that does something well and/or is usable in pipeline. I think you're missing the point of the shell.