Minishell program
$30-5000 USD
Pago na entrega
I need a programmer to write a minishell [login to view URL] is a very minimal shell program.? It is only required to find an executable in the PATH, then load it and execute it (using execv).? The focus on this exercise is to use fork, PATH variables, and exec. I need the programmer to implement aliases in the program. The requirements are listed below. It has to be writeen in C++.
## Deliverables
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 builtin 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 builtin command and should be used as below: % loadaliases [login to view URL] 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 7)There should also be an unalias builtin command to remove an alias: % unalias myls % myls myls: command not found
## Platform
I use a Unix OS system.
ID do Projeto: #3187825