LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 10-19-2006, 08:59 AM   #1
drimades
Member
 
Registered: Jun 2006
Posts: 42

Rep: Reputation: 15
Shell source code


I found the source code in C of the different commands in Linux in /coreutils directory. Is there any source code of the shell (in C) that manages all these?
 
Old 10-19-2006, 09:10 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: back to Arch
Posts: 16,661

Rep: Reputation: 425Reputation: 425Reputation: 425Reputation: 425Reputation: 425
What distribution?
What is the full path to coreutils?

Many of the Linux utilities come from GNU--I assume the source code would be there--or at sourceforge.

Here's one link found using "source coreutils" in Google:
http://directory.fsf.org/coreutils.html
 
Old 10-19-2006, 08:38 PM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
You can get the bash source from this page. I think that's what you're after.
 
Old 10-20-2006, 04:48 AM   #4
drimades
Member
 
Registered: Jun 2006
Posts: 42

Original Poster
Rep: Reputation: 15
I found some sh-utils with different source code files in C such as man, tty, pwd source codes. Still I can't find the main shell source code that manages the calls to the various commands (man, tty, pwd, etc.)
 
Old 10-20-2006, 05:54 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: back to Arch
Posts: 16,661

Rep: Reputation: 425Reputation: 425Reputation: 425Reputation: 425Reputation: 425
Quote:
Originally Posted by drimades
I found some sh-utils with different source code files in C such as man, tty, pwd source codes. Still I can't find the main shell source code that manages the calls to the various commands (man, tty, pwd, etc.)
did you look at the gnu site linked by cs-cam? I think all those files are source (or at east include the source)
 
Old 10-24-2006, 06:22 AM   #6
drimades
Member
 
Registered: Jun 2006
Posts: 42

Original Poster
Rep: Reputation: 15
----------------------------

I found shell.c and shell.h, but I'm not sure these are the only files.


----------------------------
 
Old 10-24-2006, 10:52 AM   #7
hepburnenthorpe
Member
 
Registered: Jun 2006
Location: Sydney
Distribution: Gentoo + Debian
Posts: 132

Rep: Reputation: 15
Here.... a direct link to the tar file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Voip Encryption, source code open source LXer Syndicated Linux News 0 07-09-2006 03:21 PM
can i access the source code of linux shell commands?? sharathg786 Red Hat 1 11-22-2005 05:08 AM
How to convert Assembly code to "C" source code ssg14j Programming 2 08-01-2005 12:48 PM
Where can I get source code of Linux shell utility? John Wu Linux - General 0 04-17-2001 10:20 AM


All times are GMT -5. The time now is 08:50 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration