Writing Own Minishell!


 
Thread Tools Search this Thread
Top Forums Programming Writing Own Minishell!
# 1  
Old 10-21-2005
Error Writing Own Minishell!

Hi,
I wanna write my own mini shell as a part of my project. Whole coding is to be donw in C for linux platform. I have got background of linux as well as C but now can anybody please suggest me the sources from where i can find information about how to start ? I have to implement some basic commands like ls,pwd etc. and single level pipe and redirection also. I am right now learning some C linux specific things from Advance Programming in Unix environment.
----Siddharth
# 2  
Old 10-22-2005
siddharth_god, you are breaking the rules here, I think. You said that this is part of a project, and if so, you are breaking rule 6.
Quote:
(6) Do not post classroom or homework problems.
I will still give you a hint here. Read the input one character at a time and make your decisions based on the input character.

Moderators, please lock this thread.
# 3  
Old 10-22-2005
For a start, why dont you search the forums databse ?

Last edited by vino; 10-22-2005 at 11:12 AM..
# 4  
Old 10-22-2005
you could also study the sourcecode of others shells ( zsh , ksh, ash, and so on...)
# 5  
Old 10-23-2005
source code of a shell?..

1. whether source code of shells is available in unix systems itself or not?
2. if yes how to get it?..
3. if no, where i can find it,.. any links...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Not writing output

In the attached bash in the convert function the out_position.txt in not being writing to the annovar directory and I can not figure out why. Thank you :). (2 Replies)
Discussion started by: cmccabe
2 Replies

2. Shell Programming and Scripting

Writing a Startscript

I hope I have found the perfect place for my problem ... I have a dedicated server with some minecraftservers (java) which are connected via a Bungeecord on it. These all have a start.sh which looks in its folder like this: screen -A -m -d -S SERVERNAME java -jar -Xmx2048M -Xms2048M... (10 Replies)
Discussion started by: Spongebob
10 Replies

3. Shell Programming and Scripting

Writing a File

#!/bin/bash ARCHIVE="$PWD" #ARCHIVE="/home/kschmidt/public_html/Files/DrMathArchive" NUMBERofDIRS=0 TEST="" for dir in `ls -l ${ARCHIVE}| egrep '^d' | awk '{print $9}'`; do for EACHFILE in `find ${ARCHIVE}/${dir} -type f -name "prob*" ` do ... (2 Replies)
Discussion started by: football12345
2 Replies

4. Shell Programming and Scripting

Help in writing a script

Hey everyone Can anyone please write me a script to display numbers in descending order dynamically i.e if the user enter a number say 100 then the output should be like 100 99 ....so on till 0 I tried using the logic as for ((i =1; i<=100; i--) but the it goes into a infinite loop since even the... (7 Replies)
Discussion started by: icchi
7 Replies

5. Shell Programming and Scripting

writing to a file

Hi All. I have the following simple shell program. It reads a number from the "/user/amit/bldno"; for example: file "bldno" contains value "100" After execution of the program the content should change to 101. --------- #!/usr/bin/tcsh V= `cat /user/amit/bldno` echo $V `rm -rf ... (1 Reply)
Discussion started by: amitrajvarma
1 Replies

6. Shell Programming and Scripting

Writing to another file

Hi, I have 2 unix files. I have to write all the information in the 2nd file to the 1st file at the end of the 1st file. What is the command for that. Pl tell me ASAP. Thanks (3 Replies)
Discussion started by: dreams5617
3 Replies

7. UNIX for Dummies Questions & Answers

writing a program

i have written a very simple program in the vi editor, how do i now make it an executable file? (3 Replies)
Discussion started by: carlvernon
3 Replies

8. Shell Programming and Scripting

writing scripts

What would happen if I didn't use "./" before writing a script? (4 Replies)
Discussion started by: ebethea27703
4 Replies

9. Shell Programming and Scripting

Writing to a file in different way

HI all, If I have 3 lines in variables such as follows x=Unix Forum y=Interactive Forum z=Unix Forum is Best Forum Now I want to write these 3 lines in a file so that that file will look like Unix Forum Interactive Forum Unix Forum is Best Forum How can I do it ? ... (4 Replies)
Discussion started by: dhananjaysk
4 Replies

10. UNIX for Dummies Questions & Answers

help for writing a script

Hi, I need help writing a unix script to change the time in the server automatically when it reaches a specified time. Only on the 14th of april, when the time becomes midnight (00:00:00), I need the server to change the time automatically to 23:30:00 and start working on as usual with a... (2 Replies)
Discussion started by: amodha
2 Replies
Login or Register to Ask a Question