Reputation: 10028
I am writing a utility which lets you set shell aliases persistently.
I have it in my head that unix shell aliases are POSIX compliant, but I can't remember where I heard this and my google fu has not yielded any definitive answer.
Most of my experience is with zsh and bash.
Is it safe to assume that if I write aliases in the format of specified by both bash and zsh, that I'll be able to port this format over to other shells?
Upvotes: 12
Views: 1685
Reputation: 206841
alias
(and unalias
) are indeed in POSIX.
See also alias substitution and alias names for how they are supposed to be implemented.
Upvotes: 12