Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th October 2012
sharris sharris is offline
Package Pilot
Join Date: Jun 2010
Posts: 146
Default How to install BASH SHELL ???

I used this to change to bash shell since FreeBSD 8.2 without any problems. (For he who may not know) - Of course you must install BASH into a directory to where ever you choose so don't try this unless you have already done so or you will be sorry ... something like below

MAKE BASH DEFAULT SHELL: (do every step - but first line is only a test)
chsh -s /usr/bash/bin/bash 
echo "/usr/bash/bin/bash" >> /etc/shells
chsh -s /usr/bash/bin/bash
Now that I installed FreeBSD-9.1-RC2 I get this error and than I had to re-install the entire OS over and over again after trying difference things with no success.

/usr/bash/bin/bash: 1: Syntax error: Unterminated quoted string
/usr/bash/bin/bash: 1: Syntax error: Error in commandline substitution
Would anyone know what I need to do to fix this other than installing the latest BASH which may have the same problem under 9.1 anyway.

Thanks in advance
Reply With Quote
  #2   (View Single Post)  
Old 24th October 2012
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
Join Date: Apr 2008
Location: New Zealand
Posts: 2,201

So what's wrong with pkg_add -r bash or cd /usr/ports/shells/bash && make install?
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 28th October 2012
sharris sharris is offline
Package Pilot
Join Date: Jun 2010
Posts: 146

So what's wrong with ...
I guest nothing but I thought I might learn what scripting rules has changes and why by seeing the fix. I like a fix better when possible. To upgrade an OS for life is one thing but to worry about what other working applications has lost it ability to run and at what expense is another. I do plan to take your advice if an fix has been made impossible.
Reply With Quote
  #4   (View Single Post)  
Old 2nd April 2013
Overrider Overrider is offline
Real Name: Dave
New User
Join Date: Dec 2012
Location: Virtually everywhere
Posts: 6

Firstly - install bash via ports or packages as mentioned above. Then, if you want to change your default login shell to bash now that you installed it, you can do a

chsh -s bash root
to change your default login shell.

On this note - many will recommend not to change your login shell to something that is not in base, meaning to something that was not there already when you initially installed. I personally have shot myself in the foot by setting my login shell to bash, then at some later time removing or breaking the bash package during an upgrade. This lesson is especially painful when administering a remote machine without easy physical access.
Reply With Quote

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash and pfctl = problem marbi OpenBSD General 2 14th November 2010 05:41 AM
Is is possible to access my hard drives from install CD 'Shell' option?... Quaxo OpenBSD Installation and Upgrading 2 17th May 2009 04:37 PM
Changing shell to bash rex FreeBSD General 13 29th August 2008 03:20 AM
Is bash included in OpenBSD? bsdnewbie999 OpenBSD General 21 2nd August 2008 02:57 AM
post-install green text w/o shell standardFoo NetBSD Installation and Upgrading 5 2nd May 2008 11:12 PM

All times are GMT. The time now is 12:18 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick