Minishell program

Concluído Postado Apr 25, 2004 Pago na entrega
Concluído 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.

Programação C Engenharia MySQL PHP Gestão de projetos Arquitetura de software Teste de Software

ID do Projeto: #3187825

Sobre o projeto

3 propostas Projeto remoto Ativo em Apr 26, 2004

Concedido a:

pretzelvw

See private message.

$25 USD em 1 dia
(21 Comentários)
3.8

3 freelancers estão ofertando em média $28 nesse trabalho

balaji99

See private message.

$25.5 USD em 1 dia
(51 Comentários)
3.2
yuryosadchy

See private message.

$34 USD em 1 dia
(0 Comentários)
0.0