Re:Become Shell Literate
by geophile on Saturday December 12, 2020 @02:14PM
(#25400667)
About powershell's verbosity: My pandemic project is yet another pipe-objects-instead-of-strings shell, marcel: https://marceltheshell.org. It's "home" is Linux, not Windows.
Marcel is also somewhat verbose. It exposes Python functions on the command line, so when you need to write such a function, it starts getting long. E.g. if you want to sort files by last time modified:
ls | sort (f: f.mtime)
There are abstraction mechanisms to help deal with this. E.g. this defines a command to sort piped-in files by time.
bytime = [sort (f: f.mtime)]
So you can then do this:
ls | bytime
Still kind of wordy. I'm thinking about a way of having flags expand to filters. That would get things as compact as bash.
Marcel is also somewhat verbose. It exposes Python functions on the command line, so when you need to write such a function, it starts getting long. E.g. if you want to sort files by last time modified:
There are abstraction mechanisms to help deal with this. E.g. this defines a command to sort piped-in files by time. So you can then do this: Still kind of wordy. I'm thinking about a way of having flags expand to filters. That would get things as compact as bash.