Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 07-31-2007, 08:43 AM   #1
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, 08:57 AM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
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, 09:02 AM   #3
Senior Member
Registered: Mar 2004
Location: england
Distribution: Debian, Mint, Puppy, Raspbian
Posts: 3,431

Rep: Reputation: 203Reputation: 203Reputation: 203
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, 09:10 AM   #4
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
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:
"C tutorial"
Hope this helps.
Old 07-31-2007, 09:41 AM   #5
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

To change your shell. You will need to ensure that you have additional shells installed.
Old 07-31-2007, 10:01 AM   #6
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, 10:13 AM   #7
Senior Member
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128

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


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 07:44 AM
where to place certiain commands inside shell script beeblequix Linux - Newbie 8 08-10-2006 11:12 AM
shell/bash help slackamp Slackware 6 12-07-2005 09:42 AM
urpmi shell command and cheap place to buy mandrake 10 power pack ronss Mandriva 5 11-05-2004 07:30 AM
Help!!!!! Bash Shell???? DarkHorse Linux - Newbie 7 06-04-2001 12:13 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:34 PM.

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