this post was submitted on 21 Sep 2023
51 points (100.0% liked)

Free and Open Source Software

17520 readers
283 users here now

If it's free and open source and it's also software, it can be discussed here. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] hallettj@beehaw.org 2 points 9 months ago

So maybe this is too much of a kludge, but I happened to see that you can define custom sub-commands to extend existing commands. You can use that to reproduce your familiar command:

def "ls -lrt" [] {
  ls | sort-by modified | reverse
}

Of course this does not capture the usual composability of those switches.