But I don't know of an OS that allows querying for aliases.
In reply to Re^3: Gathering current ksh shell aliases in perl by JavaFan in thread Gathering current ksh shell aliases in perl by kreon3