LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 07-31-2007, 09:43 AM   #1
somu_thedev
LQ Newbie
 
Registered: Jul 2007
Location: india
Posts: 2

Rep: Reputation: 0
own shell in place of bash shell


hi all,

we all know when we login in text mode we go into bash shell.

can any body please suggest how to create our own shell.
 
Old 07-31-2007, 09:57 AM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
You mean write one completely from scratch? I can't imagine why you would want to...there are many other shells beyond Bash if you are looking for a feature that Bash doesn't have.

But if you did want to write your own, the best thing to do would be to start studying the source code of existing shells and learning how things are done. You can then build on top of that or modify it to do whatever it is you want in the first place. It is open source, after all.
 
Old 07-31-2007, 10:02 AM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,314

Rep: Reputation: 175Reputation: 175
you can have anything as your shell,
look in /etc/passwd

shows the login shell, you can login with anything you like

it may be of limited use though
 
Old 07-31-2007, 10:10 AM   #4
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
Quote:
Originally Posted by somu_thedev
hi all,

we all know when we login in text mode we go into bash shell.

can any body please suggest how to create our own shell.
Start by learning C. Google this:
Code:
"C tutorial"
Hope this helps.
 
Old 07-31-2007, 10:41 AM   #5
redgoblin
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 189

Rep: Reputation: 41
Aaaah, my eyes!!!

Back to the point at hand. If you want to change your default shell use the command

Code:
chsh
To change your shell. You will need to ensure that you have additional shells installed.
 
Old 07-31-2007, 11:01 AM   #6
somu_thedev
LQ Newbie
 
Registered: Jul 2007
Location: india
Posts: 2

Original Poster
Rep: Reputation: 0
i need the link for source code

thanks for the suggestions..

can i get any link for getting source code of bash or bash like shell on internet
 
Old 07-31-2007, 11:13 AM   #7
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
http://ftp.gnu.org/pub/gnu/bash/bash-3.2.tar.gz

A quick google of "bash source" gave me that as the first hit.
 
  


Reply

Tags
bash, shell


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run a C Shell using only Bash shell HSN Linux - Software 1 12-25-2006 08:44 AM
where to place certiain commands inside shell script beeblequix Linux - Newbie 8 08-10-2006 12:12 PM
shell/bash help slackamp Slackware 6 12-07-2005 10:42 AM
urpmi shell command and cheap place to buy mandrake 10 power pack ronss Mandriva 5 11-05-2004 08:30 AM
Help!!!!! Bash Shell???? DarkHorse Linux - Newbie 7 06-04-2001 01:13 PM


All times are GMT -5. The time now is 10:57 PM.

Main Menu
Advertisement
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 Google+: linuxquestions
Open Source Consulting | Domain Registration