News for hackers. Stuff that matters.
Re:Zim – The Zsh configuration framework by lapser on Sunday April 10, 2022 @08:31AM (#30976431)
Generally my workflow when developing scripts is running individual commands on the CLI so I can see what it's doing so I can get it right. This is not possible with fish unless I start a bash shell, so at that point, what is the point? With zsh, most of the code I would run in a bash script still runs in a zsh interactive session. Sure there a few edge cases, but they're quite well documented.
Re:Zim – The Zsh configuration framework by samatman on Sunday April 10, 2022 @09:10AM (#30976668)
Generally my workflow when developing scripts (in Python) is to run individual functions in the repl so I can get it right.

This isn't possible with bash unless I start the python repl, so at that point, what is the point?

Hey, it's possible you spend a lot of time writing scripts, and they need to be bash compatible. Zsh is great for that.

Just wanted to reflect how made-up this sounds to those of us who treat sh like any other language.

Re:Zim – The Zsh configuration framework by lapser on Sunday April 10, 2022 @12:50PM (#30978906)
> Generally my workflow when developing scripts (in Python) is to run individual functions in the repl so I can get it right.

As a matter of fact, this is exactly what I do when I write Python scripts too. It helps understand exactly what things do quickly and figure certain smaller things.

> Just wanted to reflect how made-up this sounds to those of us who treat sh like any other language.

What do you think sounds made-up?

Re:Zim – The Zsh configuration framework by samatman on Sunday April 10, 2022 @02:13PM (#30979917)
I mean that "can't use fish because I have to use bash to write bash" makes about as much sense to me, given how I use the terminal, as "can't use fish because I have to use python to write python".

I'm assuming that means you write more shell scripts than I do, or think of the context switch between shells as qualitatively different from the context switch between shell and (some other) repl. All of which is fine.