I am using MobaXterm portable. I found a strange setup, summarized here.
External commands in /bin
work fine. E.g., with /bin/ssh.exe
I can ssh
ok.
Internal commands are
"redirected" to busybox, as
$ which cat /bin/cat $ ll /bin/cat lrwxrwxrwx 1 USER001 UsersGrp 16 Jul 24 07:42 /bin/cat -> /bin/busybox.exe
at the same time aliased to files that apparently do not exist.
$ type cat cat is aliased to `/bin/cat.exe'
These aliases apparently take precedence over files in PATH, so the commands do not work.
$ cat myfile
bash: /bin/cat.exe: No such file or directory
If I unalias, cat
does not look for /bin/cat.exe
but for /bin/busybox.exe
, and everything is "back to normal".
$ unalias cat
$ cat myfile
Hello world
...
How can I get normal behaviour (either without aliases or with the presence of the alias targets)?
I mean not to write my own unaliases in .bashrc
, this shouldn´t be needed.
Moreover, perhaps I would be breaking something.
Why would MobaXterm setup things like this?
PS: In the initial state, even ls
does not work, for the same reason.
But ll
works, since
$ type ll
ll is aliased to `_bbf ls -l'
$ type _bbf
_bbf is a function
...