You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting this! I can reproduce the error you're seeing.
I took a quick look back at the implementation; today, brush's current implementation of aliases only supports replacing the arguments of a simple command being invoked. The examples you mention are cases that require the full expected functionality hinted at in the comments on #57 -- i.e., that the shell needs to expand the alias early enough in the parsing process to handle the expansion including other command syntax (e.g., redirection, pipelines, for loops or other compound commands).
@39555 -- if we end up moving to an alternate parser as you've been proposing, that seems like it would also enable us to properly implement aliases once and for all.
Some special tokens don't work in aliases.
affected tokens (I found)
example affected commands
alias test='echo && echo succes'; test
alias test='echo; echo succes'; test
The text was updated successfully, but these errors were encountered: