In Lab #2 you implemented a basic shell called ms. This lab will extend this shell to support aliases.
1. Goto to your cis343 directory and create a lab6 directory.
2. Copy your MiniShell files from lab #2 to your lab6 directory. If you prefer, you may copy solutions for lab #2 from ~hardnett/pub/cis343/lab6.
This assignment requires you to implement aliases:
% alias myls ls Ða
or
% alias myls Òls ÐaÓ
% myls
myls will now do the same as if you had typed in Òls ÐaÓ
% alias ls Òls ÐFÓ
% ls
after having the alias created, the ÒlsÓ will actually execute Òls ÐFÓ.
% alias myls
myls is alias for ls Ða
% alias
myls ls Ða
ls ls ÐF
% loadaliases myfile.txt
This command 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
% 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.
You will be submitting your updated ms.cpp and ms.h files.
You need to submit this assignment by midnight April 28th.
% cd ~cis343/lab6
% turnin cis343 prog4
NOTE: view the output of the turnin to verify that all of the necessary files have been submitted.