Directly from assignment document:
This project requires you to implement aliases:
1. Aliases are customized names that can be given to commands by the user, and then these names are treated as commands:
%alias myls ls -a
or
%alias myls "ls -a"
%myls
myls will now do the same as if you had typed in "ls -a"
2. If a unix command and an alias have the same name, then the alias should be executed:
%alias ls "ls -F"
%ls
after having the alias created, the "ls" will actually execute "ls -F".
3. The alias command is not a unix command, it;s a shell bulit in command like exit.
4. If the user types in just "alias" and one argument. The one argument is treated as a command name, then if an alias exist it will be printed on the screen:
%alias myls
myls is alias for ls -a
5. If the user types in just "alias" and no other arguments, then all of the aliases should be shown: (the order does not matter)
%alias
myls ls -a
ls ls -F
6. There should be a way to load aliases from any file. The "loadaliases" command is a built in command and should be used as below:
%loadaliases [login to view URL]
This comman has one argument, which can be any filename. The alias definitions in the file should be added to the current list of aliases. The file being loaded should be formatted as below:
myls ls -a
ls ls -F
7. There should be an unalias built in command to remove an alias:
%unalias myls
%myls
myls: command not found
The command not found message should be the same message that is printed when any command is not found
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) COMMENTS, COMMENTS, COMMENTS!
3) Attached is the code and header file to be updated with the alias functionality.
## Platform
Unix platform