Problem
Due to my limited English proficiency, the following content was generated through translation software.
Shell script initialization failed due to autocomplete
Summary first
Some abnormal programs may cause initialization exceptions, such as a fake yarn.
Detail
I recently installed murex(pre-compiled version of AMD64) for the first time on a computer. After installation, I tried to run a shell by executing murex on the terminal. But after outputting the prompt Loading profile . murex_ reload, it kept getting stuck.
So I tried to use the sudo murex command to take the risk of starting, and it did indeed start successfully (although there was an issue with aspell, which was mentioned in the previous issues), indicating that what I installed could indeed start normally.
Next, I used murex -- debug to try starting under normal user mode, and the console:
Loading profile .murex_preload
2025/10/27 16:10:41 Loading profile builtin/profile_preload
Error in f ((builtin) 1,44):
Command: f +x
Error: no data returned
Error in f ((builtin) 1,250):
Command: f +x
Error: no data returned
2025/10/27 16:10:41 Loading profile builtin/profile_any
2025/10/27 16:10:41 Loading profile builtin/profile_linux
Error in expr ((builtin) 1,988):
Command: $WSLENV
Error: variable 'WSLENV' does not exist
Error in expr ((builtin) 1,988):
Command: $WSL_DISTRO_NAME
Error: variable 'WSL_DISTRO_NAME' does not exist
2025/10/27 16:10:41 Loading profile builtin/profile_posix
2025/10/27 16:10:41 Loading profile builtin/profile
2025/10/27 16:10:41 Loading profile builtin/integrations__namespaces_any
2025/10/27 16:10:41 Loading profile builtin/integrations_aspell_any
2025/10/27 16:10:41 Loading profile builtin/integrations_aws_any
2025/10/27 16:10:41 Loading profile builtin/integrations_basti_any
2025/10/27 16:10:41 Loading profile builtin/integrations_chatgpt_any
2025/10/27 16:10:41 Loading profile builtin/integrations_cheat.sh_any
2025/10/27 16:10:41 Loading profile builtin/integrations_coreutils_any
2025/10/27 16:10:41 Loading profile builtin/integrations_docker-compose_any
2025/10/27 16:10:41 Loading profile builtin/integrations_docker_any
2025/10/27 16:10:41 Loading profile builtin/integrations_find_any
2025/10/27 16:10:41 Loading profile builtin/integrations_freeze_any
2025/10/27 16:10:41 Loading profile builtin/integrations_git_any
2025/10/27 16:10:41 Loading profile builtin/integrations_go_any go - no man page exists
2025/10/27 16:10:41 Loading profile builtin/integrations_gopass_any
2025/10/27 16:10:41 Loading profile builtin/integrations_gping_any
2025/10/27 16:10:41 Loading profile builtin/integrations_microk8s_any
2025/10/27 16:10:41 Loading profile builtin/integrations_ollama_any
2025/10/27 16:10:41 Loading profile builtin/integrations_terraform-docs_any
2025/10/27 16:10:41 Loading profile builtin/integrations_terraform_any
2025/10/27 16:10:41 Loading profile builtin/integrations_yarn_any
After outputting the above content, it got stuck directly. So I suspect the problem lies in the built-in/integrations_yarn_any. I looked at the source code and found the section containing yarn (although I don't know if the problem originated from this file): murex/integrations/yarn_any.mx.
!if { which yarn } then {
return
}
The above code shows that if yarn cannot be found, exit directly. I found that there is no real yarn in my system, but it does have a yarn (which comes from the corepack pre installed when I downloaded pnpm), just a connection to the yarn.js file (executing it would cause the installation of yarn).
#!/usr/bin/env node
process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1'
require('module').enableCompileCache?.();
require('./lib/corepack.cjs').runMain(['yarn', ...process.argv.slice(2)]);
After deleting corepack, executing murex succeeded.
Therefore, I speculate that the problem may lie in some incomplete executable files with the special name in the system (which could be programs or links), causing the program to freeze while executing these (because they are not the real program we want, for example, it is just a fake yarn mentioned above).
How to elegantly output Unicode
This question is not particularly important because there are indeed other ways to achieve it.
In bash, we can use utf-16 code to output special characters using code similar to the following.
But I couldn't find it in murex, and after executing the following code, I feel a bit strange:
~ » escape "abc
2 » defg"
"abc\ndefg"
~ » escape "NERD FONT E0BE: "
"NERD FONT E0BE: \ue0be"
~ » !escape "abc\ndefg"
abc
defg
~ » !escape "NERD FONT E0BE: \ue0be"
NERD FONT E0BE: ue0be
Problem
Shell script initialization failed due to autocomplete
Summary first
Some abnormal programs may cause initialization exceptions, such as a fake
yarn.Detail
I recently installed
murex(pre-compiled version of AMD64) for the first time on a computer. After installation, I tried to run a shell by executingmurexon the terminal. But after outputting the promptLoading profile . murex_ reload, it kept getting stuck.So I tried to use the
sudo murexcommand to take the risk of starting, and it did indeed start successfully (although there was an issue withaspell, which was mentioned in the previous issues), indicating that what I installed could indeed start normally.Next, I used
murex -- debugto try starting under normal user mode, and the console:After outputting the above content, it got stuck directly. So I suspect the problem lies in the
built-in/integrations_yarn_any. I looked at the source code and found the section containingyarn(although I don't know if the problem originated from this file):murex/integrations/yarn_any.mx.The above code shows that if
yarncannot be found, exit directly. I found that there is no realyarnin my system, but it does have ayarn(which comes from thecorepackpre installed when I downloadedpnpm), just a connection to theyarn.jsfile (executing it would cause the installation ofyarn).After deleting
corepack, executingmurexsucceeded.Therefore, I speculate that the problem may lie in some incomplete executable files with the special name in the system (which could be programs or links), causing the program to freeze while executing these (because they are not the real program we want, for example, it is just a fake
yarnmentioned above).How to elegantly output Unicode
In
bash, we can useutf-16code to output special characters using code similar to the following.But I couldn't find it in
murex, and after executing the following code, I feel a bit strange: