News for hackers. Stuff that matters.
Re:Bashing the Bash – Replacing Shell Scripts with Python (2... by GSGBen on Friday March 25, 2022 @11:37PM (#30809057)
> I was hoping someone finally had a library or something to make python good at the things shell does well (mostly, running stuff and piping output around). If only.

Good news, they did! Even better news: it doesn't require python, it's cross platform, and supports an easy-to-read verbose style for scripts but a quick-to-write terse style for interactive usage. It's an absolute joy to use for nested data structures, everything is an object and it has full native tab completion.

Unfortunately it came out of Microsoft so a lot of people haven't given it the time of day yet. It's honestly one of the joys of modern CLI usage though.

Re:Bashing the Bash – Replacing Shell Scripts with Python (2... by derekbaker783 on Saturday March 26, 2022 @12:41AM (#30809280)
What is Powershell
Re:Bashing the Bash – Replacing Shell Scripts with Python (2... by DyslexicAtheist on Saturday March 26, 2022 @05:44AM (#30810503)
I just added powershell support to my Debian.

  $> ll /bin/powershell
  lrwxrwxrwx 1 root root 9 Mar 26 14:40 /bin/powershell -> /bin/dash

  $> cat ~/pwr_to_the_people.sh
  #!/bin/powershell

  echo "Hello Powershell"


  $> powershell ~/pwr_to_the_people.sh
  Hello Powershell
Works like a charm!
Re:Bashing the Bash – Replacing Shell Scripts with Python (2... by aloisdg on Saturday March 26, 2022 @06:24AM (#30810653)
A dotnet based shell where you can share around dotnet object instead of plain text.