Find Jobs
Hire Freelancers

C shell modify command project 1 hour max!

$10-30 USD

Complété
Publié il y a environ 9 ans

$10-30 USD

Payé lors de la livraison
Task is to modify the shell interface program so that it provides a history feature that allows the user to access the most recently entered commands. The user will be able to access up to 10 commands by using the feature. The commands will be consecutively numbered starting at 1, and the numbering will continue past 10. For example, if the user has entered 35 commands, the 10 most recent commands will be numbered 26 to 35. The user will be able to list the command history by entering the command history at the osh> prompt. As an example, assume that the history consists of the commands (from most to least recent): ps, ls -l, top, cal, who, date The command history will output: 6 ps 5 ls -l 4 top 3 cal 2 who 1 date Your program should support two techniques for retrieving commands from the command history: 1. When the user enters !! , the most recent command in the history is executed. 2. When the user enters a single ! followed by an integer N, the Nth command in the history is executed. Continuing our example from above, if the user enters !! , the ps command will be performed; if the user enters !3, the command cal will be executed. Any command executed in this fashion should be echoed on the user’s screen. The command should also be placed in the history buffer as the next command. The program should also manage basic error handling. If there are no commands in the history, entering !! should result in a message “No commands in history. ” If there is no command corresponding to the number entered with the single ! , the program should output "No such command in history.
N° de projet : 7557910

Concernant le projet

3 propositions
Projet à distance
Actif à il y a 9 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
Décerné à :
Avatar de l'utilisateur
A proposal has not yet been provided
$35 USD en 1 jour
1,0 (2 commentaires)
0,0
0,0
Avatar de l'utilisateur
A proposal has not yet been provided
$15 USD en 1 jour
0,0 (0 commentaires)
0,0
0,0
3 freelances proposent en moyenne $42 USD pour ce travail
Avatar de l'utilisateur
ready to do it............................................................................................
$77 USD en 1 jour
4,9 (26 commentaires)
4,8
4,8

À propos du client

Drapeau de POLAND
Wolbrom, Poland
5,0
29
Membre depuis juil. 1, 2011

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.