LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-28-2005, 06:44 AM   #1
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Rep: Reputation: 30
Question howto update bash 2.05b > 3.0 ?


howto update bash 2.05b > 3.0 ?
 
Old 12-28-2005, 08:43 AM   #2
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
just like any application. Get the newer version and install it. Using official mandrake packages might be a good idea.
 
Old 12-28-2005, 11:27 AM   #3
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Original Poster
Rep: Reputation: 30
Question bash 3.0 installation

mandrake 10.0 community
i install bash 3.0 in usr/local/bin (default)
and resttart Pc ... after that run $bash --version
it is still 2.05b ...
i check usr/local/bin.. there are new files... belong to bash 3.0 - how i know if system is using bash3.0

10x
 
Old 12-28-2005, 12:42 PM   #4
BinJajer
Member
 
Registered: Sep 2005
Location: Warsaw, Poland
Distribution: Slackware 10.2, Caldera OpenLinux 3.1, Corel Linux (Thanks xhi!), Debian GNU/HURD etc...
Posts: 296
Blog Entries: 1

Rep: Reputation: 30
change your login shell to /bin/bash3 , it is sometimes called that way in mandrake.
 
Old 12-28-2005, 02:44 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
Your two threads have been merged into one, because they cover the same topic.

You need to do two things.
1. Add your /usr/local/bin/bash to /etc/shells (it's a list of allowed shells)
2. Change your shell. To do this, use a graphical tool Mandrake provides (after you have it in /etc/shells, it should be also on all the lists) or edit /etc/passwd. Last field of every line shows the shell to you. Change it for one user, test and they you can change for more.
 
Old 12-29-2005, 08:06 AM   #6
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Original Poster
Rep: Reputation: 30
i edit /etc/shells and after that
'chsh' /usr/local/bin/bash
then i look in /etc/passwd - it is changed... and i type 'bash --version'
still 2.05b...
internesting - i press Ctrl+Alt+F1 and login - type 'bash --version' and it is 3.0 !
what is wrong??
 
Old 12-29-2005, 10:39 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Did you log out after changing the shell? I have noticed that sometimes if you are running a gui session, you need to completely exit before your new shell can be used by all apps.
 
Old 12-29-2005, 12:40 PM   #8
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Original Poster
Rep: Reputation: 30
yes i restart the pc ... no change
 
Old 12-30-2005, 09:20 AM   #9
BinJajer
Member
 
Registered: Sep 2005
Location: Warsaw, Poland
Distribution: Slackware 10.2, Caldera OpenLinux 3.1, Corel Linux (Thanks xhi!), Debian GNU/HURD etc...
Posts: 296
Blog Entries: 1

Rep: Reputation: 30
Boo,boo,boo. Mandrake.They do not create Linuxes, they create a whole new OS. That is why , as soon as I could , threw this "distro" away and moved.
 
Old 12-30-2005, 09:41 AM   #10
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Original Poster
Rep: Reputation: 30
how can i choose Linux so it is closest to the original idea?
i saw the site of linux from scratch .. and it sounds like a good idea for the future
 
Old 01-01-2006, 07:40 AM   #11
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
LFS is a nice idea but its pretty time consuming. Some say Slackware is the closest you can get to LFS without actually using LFS.. (;

IMHO the easiest solution to get your bash upgraded would be just to replace the old bash with the new one. Thats the way most software is upgraded, so why not with bash also?
 
Old 01-03-2006, 12:25 PM   #12
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Original Poster
Rep: Reputation: 30
how to replce it? to tell ./configure the /bin/bash directory??

tnx
 
Old 01-03-2006, 01:02 PM   #13
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
well, you could probably use some configure option, or just move the new binary on top of the old one. Or just install the damn official package that will replace the original bash like it was intended to.
 
Old 01-03-2006, 04:28 PM   #14
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
Quote:
Originally Posted by pingvina
how to replce it? to tell ./configure the /bin/bash directory??
Usually ./configure --prefix=/ if you want to have a new /bin/bash.
 
Old 01-04-2006, 10:24 AM   #15
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Original Poster
Rep: Reputation: 30
tnx, anyone knows something about RAMDISK and EXT2-fs
i gert some eror messages.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
$LINENO can't be modified in bash 3.0, while it can be in bash 2.05b Darwish Linux - Software 1 11-07-2005 02:57 PM
bash + html + javascript or just bash ? rblampain Programming 4 12-01-2004 07:53 AM
Installation doesn't recognize Red Hat Enterprise Linux ES installation cd bizkut Red Hat 2 08-15-2004 08:57 AM
slackware bash shell installation naruse Linux - Software 10 08-04-2004 09:36 PM
why did bash 2.05b install delete /bin/bash & "/bin/sh -> bash"? johnpipe Linux - Software 2 06-06-2004 06:42 PM


All times are GMT -5. The time now is 07:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration