Today's #APOD's a looker ;)

Date: 2026 February 02
URL: https://apod.nasa.gov/apod/ap260202.html
Title: Orion: The Running Man Nebula

#NASA #Astronomy #PictureOfTheDay

APOD: 2026 February 2 โ€“ Orion: The Running Man Nebula

A different astronomy and space science related image is featured each day, along with a brief explanation.

P.S., the body of the parent #toot was created by a simple #shell #function:

function apod { #Today's NASA Astronomy Picture of the Day info-fetcher curl -sL 'https://apod.nasa.gov/apod/archivepix.html' \ |grep -m1 "[0-9][0-9]:" \ |sed 's/^/Date: /; s|: *<a href="|\nURL: https://apod.nasa.gov/apod/|; s/">/\nTitle: /; s/<.*$//' echo echo "#NASA #Astronomy #PictureOfTheDay" }

#bash #ksh #mksh #shellScripting #unix #UnixShell #WebScraping #Scraping #HTML

@rl_dane I've been getting into a shell called Elvish. https://elv.sh/
It lets you pipe around structured data like you find in modern programming languages, like arrays, maps, floating-point numbers, and the like. As well as normal POSIX byte streams.
It's not compatible with POSIX shells like Bash though, BTW.

#ElvishShell

Elvish Shell

@rl_dane Example script; notifies you of playing media:

playerctl -i firefox -F metadata title | each {|title| if (not-eq $title '') { notify-send -- 'Now playing!' $title } }

I really like that you don't need to do "$title" or "$(not-eq -- "$title")" or else you e.g. can get hacked. And I can avoid xargs too :D

Bash equivalent, but without the filtering against blank lines (which appear for some reason):

playerctl -i firefox -F metadata title | xargs -n1 -d'\n' notify-send -- 'Now playing!'

@golemwire

Interesting, isn't that kind of what #PowerShell promised?

@golemwire @rl_dane interesting, but looking at the age of the last release, I'll keep using #PowerShell instead

@sassdawe @golemwire

It does have recent activity, though (just not a lot)

https://github.com/elves/elvish/activity

Activity ยท elves/elvish

Powerful scripting language & versatile interactive shell - Activity ยท elves/elvish

GitHub

@rl_dane It does actually remind me of PowerShell in a few ways, but in a good way. I'll keep learning it and find out more of what I think.

Random but with `*` filename matching, you can use modifiers in brackets. Yesterday I did `mkdir old` and then wanted to do `mv * old`, but found out I could instead do `mv *[but:old] old`.
Also TUI file selector via Ctrl+L.

When I find something I like, I end up feeling like a salesman and I don't like it ๐Ÿ˜†

@rl_dane That said, the shell executable itself is about 10.4MB. Which is a drawback for me....

@golemwire

WOOF. That's a chonkerexec.

rld@Intrepid:~$ ll $(realpath $(which bash)) $(which sh) $(which mksh); uname -srm -r-xr-xr-x 1 root wheel 168,728 Jun 6 2025 /bin/sh -rwxr-xr-x 1 root wheel 1,312,072 Jan 14 19:18 /usr/local/bin/bash -r-xr-xr-x 1 root wheel 326,816 Jan 12 19:04 /usr/local/bin/mksh FreeBSD 14.3-RELEASE-p5 amd64
@rl_dane That's a bit better.... :)

@golemwire

> When I find something I like, I end up feeling like a salesman and I don't like it ๐Ÿ˜†

No shame in that, I'm still waiting for my fat commission check from Big #BSD. ๐Ÿ˜‚