Upgrading bash on Darwin (osx)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Upgrading bash on Darwin (osx)
# 1  
Old 01-14-2007
Upgrading bash on Darwin (osx)

Hi,

I have installed bash 3.2 via darwin ports, however when I try and change the shell i.e. chsh -s /opt/local/bin/bash is says its a non-standard shell? but if i run ./bash i get a new bash prompt with version 3.2?

Thanks
# 2  
Old 01-14-2007
I don't use darwin, but usually there is a file /etc/shells that you would need to update.
# 3  
Old 01-14-2007
Thanks,

do i just need to reference the new version and then run chsh?
# 4  
Old 01-14-2007
Add:
/opt/local/bin/bash
to it.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

OSX bash & expect

I have a script that must perform a 'sudo' operation on each of a number of hosts. I'm trying to get expect working so I only have to enter it once, and have run into a couple of issues. First, several examples suggest to use: /usr/bin/expect <<EOD spawn ssh -t $host /usr/bin/sudo -v... (7 Replies)
Discussion started by: jnojr
7 Replies

2. Shell Programming and Scripting

OSX, bash, cat with <<MARKER executing commands

I have a script that writes another script with cat >/usr/local/bin/myscript.sh <<EOF #!/bin/sh VAR=`run a command here` EOF Problem is, after this is run, I get: $ cat /usr/local/bin/myscript.sh #!/bin/sh VAR=result of command How do I stop that from happening with Macs... (2 Replies)
Discussion started by: jnojr
2 Replies

3. Shell Programming and Scripting

open application with spaces in name [bash][OSX]

Hi guys, I'm new here and new to shell scripting so don't be hard on me I'm trying to create a bash script to restart a process by name in Mac OSX. I have no problem killing the application, the problem comes when launching it again. I managed to store the path in a variable lets say ... (8 Replies)
Discussion started by: jonathanwiesel
8 Replies

4. Shell Programming and Scripting

File Locking with fcntl on Darwin Mac OSX

Hello I have a Perl script that works on non-darwin Mac OS X environments and I think I have narrowed down the issue to a file locking problem. In other linux environments, the flock struct is defined differently. I have adjusted this via the reference for Mac OS X fcntl(2) man page. The... (4 Replies)
Discussion started by: flagman5
4 Replies

5. OS X (Apple)

bash script for dseditgroups in OSX

Hi there, Hope this isn't too complex of a script to try to make but this is what I'm trying to do. Create a new group and add local users that aren't admin to the group. So let's say the new group is 'cats' and 'dog' is the only admin on the machine. Let's say most machines only have one... (4 Replies)
Discussion started by: stop.the.stupid
4 Replies

6. Shell Programming and Scripting

#!/bin/bash and #1bin/sh command not found error on mac osx terminal/shell script

i am having a weird error on mac os x running some shell scripts. i am a complete newbie at this and this question concerns 2 scripts. one of which a friend of mine wrote (videochecker.sh) a couple weeks ago and it's been running fine on another machine. then last week i wrote capture.sh and it... (2 Replies)
Discussion started by: danpaluska
2 Replies

7. OS X (Apple)

Darwin ports

Hi there. I have an MacBookPro and I want to install Darwin ports. I downloaded & installed MacPorts-1.7.0.pkg and now I don't know what to do. I tried: # port -d selfupdate .... error 1 Command output: checking build system type... i686-apple-darwin9.7.0 checking host system type...... (7 Replies)
Discussion started by: hirohitosan
7 Replies

8. UNIX for Dummies Questions & Answers

sed -i on Darwin

This is the first time I've come across this issue sed -i 's/"//g' iscrmireturns sed: 1: "iscrmi": command i expects \ followed by textApparently the -i option is non-standard FreeBSD extensions - does that mean it's not available on Darwin? Strange (1 Reply)
Discussion started by: platz
1 Replies

9. OS X (Apple)

GNU-Darwin

Did anyone here about GNU-Darwin? http://gnu-darwin.org/ Read Bout it! And Darwin can be found here: http://www.opendarwin.org Tell me what U think (4 Replies)
Discussion started by: RedVenim
4 Replies

10. UNIX for Dummies Questions & Answers

Darwin x86

so, what's everyone's opinion on Darwin (x86 rendition)? is it worth installing at the moment? pros? cons? comments? (5 Replies)
Discussion started by: Karma
5 Replies
Login or Register to Ask a Question