Using alias leads to slow interaction
Describe the bug:
For user set aliases, when running them, there is a significant slowdown. For example, I have the bat program installed so I aliased it to cat. Similar for hexyl aliased to xxd. Running the original programs (hexyl, bat) run fine and smooth, but when running the aliases (cat, xxd), it becomes slow and typing is almost non-existent.
Expected behaviour: Using the alias should be the same as using the original program.
Screenshots: N/A
Platform (please complete the following information):
- OS, output from
uname -aif supported: Linux [redacted] 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux - Terminal Emulator: Tabby, Rio, Fluent, Windows Terminal
- Murex version: 7.1.4143 (unknown)
Additional context I am using WSL 2 with Ubuntu LTS.
I'm very confused by this because alias doesn't do anything that would affect performance. Even Murex's runtime still says the destination executable rather than the alias name. eg
» alias bob = sleep 200
» bg { bob }
» fid-list
FID Parent Scope State Run Mode BG Out Pipe Err Pipe Command Parameters
9929 9928 9929 FunctionGroup Default yes bg
9930 9929 9929 Executing Default yes out err exec sleep 200
10004 0 0 Executing Default no out err fid-list
^ you can see here that Murex doesn't see bob, but it does see `sleep.
I don't doubt what you're experiencing, but this is definitely a weird one.
As it happens, I do have a spare Windows machine lying around (mostly used to play Minecraft Bedrock with the kids haha) which I'm pretty sure does have Ubuntu LTS for WSL2 already set up. So I'll have a play, see if I can recreate your issue.
Thanks for the bug report