Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Implement a shell that can handle an input of the form
cmd1 [ <input ] [ | cmd2 ] [ >output ]
Where the square brackets refer to an optional input. For example, your shell should
process all, but not limited to, the following inputs
• cmd1
• cmd1 < input
• cmd1 | cmd2
• cmd1 < input > output . . .
That is exactly what I thought Xavier, and why I didn't want to help out, or even really ask about it. Looks exactly like a C/Unix textboox problem I had in college.
Because when we all signed up to LQ, we agreed to abide by the Rules. One of which is
Quote:
Do not expect LQ members to do your homework - you will learn much more by doing it yourself.
Besides, if we tell him how to solve it, how will he learn or learn to research? As I say, very regularly, if anyone has a problem with a course they are taking, they should talk to their teacher - we will simply be masking an underlying problem if we solve it for him.
Closed.. do your homework on your own time, not ours.
phsythax, Just to let you know... this question isn't exactly trivial. I'd be inclined to help him if he had a specific question about something but "implement a shell" is a pretty broad question that sounds a lot like "complete my assignment for me".
If his question was "I'm implementing a shell and I've coded xyz this way and it isn't quite working, you ideas?" the reception would probably be warmer... though it would also belong in the Programming forum
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.