https://learn.microsoft.com/en-us/powershell/scripting/insta...
It was actually first created before Powershell was available outside of Windows. But some of the design philosophies are fundamentally different to Powershell too. For example Murex is designed to work well with POSIX (bar the shell syntax itself), whereas Powershell reimplements most of the stack, including coreutils.
The nushell homepage, by comparison, immediately conveys the benefits of that project.
NB story spoilers. <https://wiki.warframe.com/w/Murex>
However, I have trouble understanding some design decision, such as inventing redundant keywords. And I've spotted bugs in boths (e.g. ls --literal fails in nu, and the completion proposes it twice in Murex).
-N, --literal
print entry names without quotingMy GNU `ls` has `--literal`, but to do that in nu, you have to do `^ls --literal`, to use the external command instead of the nu builtin.
You can see the nu `ls` options with `help ls`, or `ls --help`. `--literal` is completely useless for nu's `ls` anyway. `nu`'s ls gives a table, where the `name` column is the filenames. There's no need for any quoting, because it's already structured output.
Murex author here: The design was originally based around explicitness. Though that's not to say that the design works everywhere. So I'm definitely interested to understand where you think improvements can be made. Please do leave some feedback in Github.
grep sh$ /usr/share/dict/words | wc -l
1959
options available; surely we haven't exhausted them all?!(wamerican 2017.08.24-1 from Ubuntu 18.04)
So if a shell is not bash syntax compatible, then it really has to offer some astonishingly useful features to offset my having to translate and map the scripts I need to run for it.
Murex does not interpret "$(cmd args)". So unfortunately, I cannot use it. I know it's not fair, and I know that is promoting a lock-in of what shells can do, but I need to get shit done I'm afraid.
What you're saying applies to all core non established technologies: languages, operating systems, file formats, protocols, plugin ecosystems. If you're in a situation where that's non negotiable then obviously you're not the target audience here.
Did you know you can install PowerShell on Linux too?
$ ./murex-linux-arm64
Loading profile `.murex_preload`
SIGSYS: bad system call
PC=0x18fd0 m=8 sigcode=1
goroutine 498 gp=0x4000283340 m=8 mp=0x4000100808 [syscall]:
syscall.Syscall6(0x1b7, 0xffffffffffffff9c, 0x40000227e0, 0x1, 0x200, 0x0, 0x0)
/opt/hostedtoolcache/go/1.24.6/x64/src/syscall/syscall_linux.go:95 +0x2c fp=0x40001119c0 sp=0x4000111960 pc=0xa067c
syscall.faccessat2(0xffffffffffffff9c, {0x4000359fb0?, 0x4000022780?}, 0x1, 0x200)
/opt/hostedtoolcache/go/1.24.6/x64/src/syscall/zsyscall_linux_arm64.go:33 +0x84 fp=0x4000111a20 sp=0x40001119c0 pc=0x9df74
syscall.Faccessat(0xffffffffffffff9c, {0x4000359fb0, 0x27}, 0x1, 0x200)
/opt/hostedtoolcache/go/1.24.6/x64/src/syscall/syscall_linux.go:171 +0x3c fp=0x4000111b00 sp=0x4000111a20 pc=0x9c9ec
internal/syscall/unix.Eaccess(...)
...
I'm tired bosshttps://www.cisa.gov/known-exploited-vulnerabilities-catalog...
murex » murex-package install https://github.com/orefalo/murex-module-starship
\* Getting package from 'https://github.com/orefalo/murex-module-starship'....
Error in `murex-package` (0,1): protocol handler for HTTPS has not yet been written. Please use git in the mean time (you can do this by specifying a git extension in the uri)
.murex_modules » murex-package install https://github.com/orefalo/murex-module-starship.git
\* Getting package from 'https://github.com/orefalo/murex-module-starship.git'....
Cloning into '/home/aroedset/.murex_modules/murex-module-starship'...
Error in `murex-package` (0,1): \* Package 'murex-module-starship': Error loading module `starship` in path `/home/aroedset/.murex_modules/murex-module-starship/starship.mx`:
> \* Missing required executable, builtin or murex function: `starship`
.murex_modules »
And then the time I allocated for myself for trying out a random shell I found on the internet was up.You forgot the .git when you tried first, and you don’t have starship installed on your system or on your path.
Murex were the shells whose excretions were used to make the Tyrian purple of the Mediterranean. Tyrian referring to Tyre, one of the major Phoenician city-states.
It was so iconic that the "Punic Wars" are called that because Punic = Phoenicia = "Purple People".
Carthage was the Phoenician colony that outlasted the home country.
The Phoenicians were a semitic people like the Jews, and they gave the world its first alphabet which was adopted by both the Hebrews and the Greeks. The Greeks added vowels, and the Romans adopted that alphabet and it became roughly the one we use today.
If you go to the Wiki page (https://en.m.wikipedia.org/wiki/Phoenician_alphabet) and scroll down to the Table of Letters header, you can see how the letters evolved from Egyptian hieroglyphs to the letters we use today. It’s particularly interesting to me that our letter “B” (which the greeks called “beta” and which forms the tail end of “alphabet”) was originally a house, and the semitic languages called it “bēt” which was their word for house, which you can still see today in Biblical place names like Bethel (house of God—“El” was a very old name for God).
It's interesting how, unlike Sumerian cuneiform or Egyptian hieroglyphs that were complex systems that came from dedicated scribes of the court, Phoenicia's alphabet was the kind of pragmatic system you can imagine a more mercantile society developing.
It's wild that it turned into the scripts: Latin, Greek, Arabic, Cyrillic, Hebrew, and beyond.
Also interesting is Chinese script, which was saved from this by Stalin telling Mao that China should keep its unique writing, which Russia of course was already doing. Mao did do the simplification, but he turned away from his previous plan to standardize the latin script for Chinese.
err "some message"
becomes normal?
For me, it would have to offer sexual favors or something to be worth it. I don't see anything that good otherwise.
h33t-l4x0r•4mo ago
iberator•4mo ago
klibertp•4mo ago
Meanwhile, I have 22.3k SLOC of Emacs Lisp config, and Emacs starts up (granted, after lowering bytecode to native code AOT) in ~4 seconds. To me, that suggests there's something really wrong with ZSH in terms of performance - unfortunately, it's better in almost every other way compared to BASH, so I learned to live with that. Still, at least in my setup, ZSH indeed is slow, even on modern hardware. I wonder if it would even run on a 486...
cb321•4mo ago
Also, if something seems limited by "just parsing", you can usually speed that up a lot with `zcompile`. I do that with a `.zcompdump.zwc` and a `digraphs.zsh.zwc`.
EDIT: I noticed myself that really large HISTSIZE (in the 100s of thousands, and with such limit realized) combined with de-duplication seems to be a bad combination. I just lowered my HISTSIZE with a when-too-big spool-off for longer term history/cold storage.
klibertp•4mo ago
...right, I totally forgot that. Yeah, my history file is 4.5MB, and $HISTSIZE is 1M. I even wrote a Scala app[1] some time ago to collect hist files from all my machines (I used many more than the current 2, at some point), merging and deduping them once a day. Adding to that, it's 13 years old at this point, and probably has quite a few KB of mis-pasted text files in it, so I guess it makes sense it's this large. It also makes sense that processing it takes a while, especially with deduping enabled.
I'll check, but if that's the reason, then I'd be reluctant to do anything with it. Having fzf search through all my command lines dating back to 2012 is very valuable. I'll see how that would work with spooling.
Thanks for the profiling tip, I'll check it out! As mentioned, I'm not thinking of jumping ship, so I'm willing to do some digging to make the situation better :)
[1] https://github.com/piotrklibert/zsh-merge-hist
EDIT: yeah, history is the reason:
cb321•4mo ago
I don't even recall if it's necessary or was just the simple algorithm. So, you might actually be able to get Zsh fixed if there is some quadratic thing that can be turned linear with a hash table. The Zsh mailing list is quite accommodating in my experience.