Find Jobs
Hire Freelancers

Implement a Small UNIX Shell

€30-250 EUR

Abgeschlossen
Veröffentlicht vor mehr als 3 Jahren

€30-250 EUR

Bezahlt bei Lieferung
Implement a Small UNIX Shell Overview and Goal The goal of this task is to write a simple but functional UNIX shell in C. It must: Print a shell prompt ($) Read multiple commands from standard input and execute them Support shell variables and expansion Support the variable $? to print out the return code of the last program Run programs in the background if desired Support redirection of standard input, output and error Support the pipeline operator (|) See expected output below for details. Important Notes Executing any real shell (e.g. /bin/bash) through exec(), popen() or any other means is not a valid solution. All of the functionality must be implemented by yourself in shell.c! Do not use isatty() to check if your shell is running in a terminal (e.g. to display a prompt only in this case). The CI environment is not using a terminal. It is recommended to use fflush() to flush the output streams (otherwise, e.g. CI tests may not work properly) Expected Output Print a shell prompt ($) when ready ... $ Read multiple commands from standard input and execute them $ echo Hello Hello $ expr 1 + 3 4 Support shell variables and expansion $ A=5 $ echo $A 5 $ echo ${A}BC 5BC $ A=$A$A echo $A 55 Support checking the return code of the last program using $? $ true $ echo $? 0 $ false $ echo $? 1 Support running programs in the background with & $ firefox & $ After this, Firefox should be running and the shell accepting commands again. Support redirection of stdin, stdout and stderr with >, < and 2> $ echo Hello > [login to view URL] $ cat - < [login to view URL] Hello Support the pipeline operator | $ echo Hello | tr l L | tr o ? HeLL? Evaluation Total points possible: 7 Minimum number of points required to pass: 5 Points can be obtained as follows: 1 Point: Correct display of shell prompt 1 Point: Read and execute multiple commands 1 Point: Support shell variables and expansion 1 Point: Support $? for displaying the return code of the last program 1 Point: Support & for running programs in the background 1 Point: Support redirection of stdin, stdout and stderr 1 Point: Support pipes with | the project / source has to compile with the attached makefile
Projekt-ID: 28984363

Über das Projekt

5 Vorschläge
Remote Projekt
Aktiv vor 3 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
Hi, I have a professional experience of over 3 years working in C/C++ and have worked on projects related to system programming during my university tenure. I hope to provide you the required solution within desired time frame.
€200 EUR in 10 Tagen
5,0 (5 Bewertungen)
3,0
3,0
5 Freelancer bieten im Durchschnitt €177 EUR für diesen Auftrag
Avatar des Nutzers
Hi , I can write the shell for you as requested in short time in Objective C or C++ . Let's talk in details if you are interested
€250 EUR in 7 Tagen
4,6 (9 Bewertungen)
4,1
4,1
Avatar des Nutzers
Let me support you. ------------------------------------------- More than 18 years of experience in Tutoring, Freelancer. Excellent in C, C++, JAVA, PHP, .NET, PHP Web, Desktop, Console applications. Data Structure (Linked List, Queue, Stack, Hash, Tree, Graph...), Algorithm  (DFS, BFS, IDFS, A*, Dynamic programming...) Database (MySQL, SQL Server, Oracle...) Assembly, (Hardware and Software) and others...
€175 EUR in 2 Tagen
5,0 (5 Bewertungen)
1,5
1,5
Avatar des Nutzers
Hello I am a , professional programmer for standalone projects.I’m very experienced with c platforms for over 10 years, so I’m sure I can help you to convert your system and ready to start now. Don’t hesitate tot contact me and discuss the details,ts project is always kept confidential. Thank you.
€100 EUR in 3 Tagen
0,0 (1 Bewertung)
0,0
0,0
Avatar des Nutzers
please discuss. Negotiable price and duration...........................................................................................................................................................
€160 EUR in 4 Tagen
0,0 (1 Bewertung)
0,0
0,0

Über den Kunden

Flagge von GERMANY
Germany
0,0
0
Zahlungsmethode verifiziert
Mitglied seit Jan. 18, 2021

Kundenüberprüfung

Andere Aufträge von diesem Kunden

LS implementation in C
€30-250 EUR
Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.