nuta / nsh

A command-line shell like fish, but POSIX compatible.
906 stars 34 forks source link

Aliases not evaluated "procedurally" #38

Open ghost opened 2 years ago

ghost commented 2 years ago

In ZSH (and I believe other shells as well) something like the following is possible (example):

alias ls="exa"
alias l="ls -la"

which will both execute exa since the first alias remaps the default unix ls to exa.

In Nsh, this doesn't work. The second alias runs the default ls instead.

What would be the scope of this change? What would need to be done?