LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Shell Programming (https://www.linuxquestions.org/questions/linux-newbie-8/shell-programming-641946/)

abbie 05-13-2008 01:55 PM

Shell Programming
 
Hi,
I have actually designed a shell of my own , and im stuck with a big problem of how to implement the "CD" command.
Can anyone please help me out with the code which i can add to my program to have the CD command also functioning
Please help me as soon as possible , im in urgent need

Thanks

pixellany 05-13-2008 02:11 PM

Welcome to LQ!!

You'll need to explain why this is urgent.....If it is homework, then be aware that this is not why we are here.

You also need to show what you have tried--so that we know where you are on the learning curve.

Have you studied the source code for ---eg--- BASH?

seraphim172 05-13-2008 05:28 PM

what programming environment do you use?
 
How did you implement your shell? What programming language?

A piece of Cobol code will not help you much if your working in Fortran :-)

fbianconi 05-13-2008 09:00 PM

if there is a notion of $PWD in your shell then you should use it. Just guessing.

i.you 05-14-2008 12:34 AM

If you design it by C language just use a system call, chdir() or fchdir().

the usage :

<QUOTE>man chdir</QUOTE>

terrio 05-14-2008 05:45 AM

Further i.you's post, you could also look into using the following [execl, execlp, execv], that is if this homework assignment was to be done using C. :)

abbie 05-17-2008 03:35 AM

I thought this is somewhere where people are ready to help , but im sorry to say that you guys think that you are too technical and new ones cannot match with you.
This is not a home assignment , i was doing this as a hobby , and thanks to some good friends im easily done with it and i dont need your stupid replies anymore
thank you for wasting my time
and one more thing , i am the Manager IT operations at Efroze , and im sure i earn 10 times more than you small guys do

unSpawn 05-17-2008 04:39 AM

You are completely out of line
 
@Abbie: you just did the "best" thing to promote the company you work for in terms of professional conduct and trustworthiness. You're a very new LQ member and you never took the time to help others. That isn't mandatory but it shows your grasp of things like reciprosity, what kind of LQ Community member you would want to be. Your thread received replies, yet you never took the time to acknowledge each of them properly. That isn't mandatory but it shows what kind of person you are in terms of appreciation and netiquette. You are your own master. Nobody wastes your time but you. That wouldn't be necessary either if you would have shown you posess rudimentary knowledge of what you're talking about, how to ask questions properly and maturity.

As moderator I ask of you to retract your statement to acknowledge the fact you are completely out of line immediately.


//Until this gets resolved one way or the other I would appreciate it if all others keep from posting replies. TIA

mrrangerman 05-17-2008 06:46 AM

Quote:

abbie

and im sure i earn 10 times more than you small guys do
Thats good, that just gives your mates lover more money to spend.

seraphim172 05-17-2008 07:31 PM

abbie, abbie, abbie
 
abbie,

Quote:

i am the Manager IT operations at Efroze , and im sure i earn 10 times more than you small guys do
Well, how much do you earn actually? I'm just curious to know how small we all are and what the current rates for arrogance are.

Other than that, we still don't know how you implemented your hobby shell. Apparently you're the Paris Hilton of the IT Industry - earning a lot of money and still having time to reinvent a shell. Is it Open Source? Can we download it somewhere to have a look at your expertise?

Tinkster 05-18-2008 01:25 PM

And closed. Pity that some folk can't read, or feel they
have to choose to ignore the mods messages in a thread, too.



Cheers,
Tink


All times are GMT -5. The time now is 02:29 PM.