LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 08: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, 08:57 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
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
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 31
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, 09: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, 10: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, 10: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 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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:42 AM.

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
Open Source Consulting | Domain Registration