Steve’s Ubuntu Weblog

Mainly (but not only) about Ubuntu

Bash or Dash

There has been no major issues with my upgrade although one problem has been that some of my scripts stopped working.The problem is that with 6.10 the default shell is dash whereas before it was bash. The solution is to either keep changing your shell scripts to point to /bin/bash or change the symlink for /bin/sh. I have been changing my scripts as required, ie when I find that they don’t work.

If you think that changing the symlink is a better idea please let me know.

16 July, 2007 Posted by | Ubuntu | Leave a comment

XAMPP in Ubuntu. “/opt/lampp/bin/mysql.server: 84: source: not found.”

I am having a problem installing XAMPP because I have an Apache server already running, I will give details of how I get around this after I have fixed it. Meanwhile every time I started XAMPP with sudo /opt/lampp/lampp restart I got the following warning:

/opt/lampp/bin/mysql.server: 84: source: not found.

It turns out to be the old dash/bash problem that I wrote about over 3 years ago here

The solution is to change #!/bin/sh to #!/bin/bash in /opt/lampp/bin/mysql.server using Gedit sudo gedit /opt/lampp/bin/mysql.server

21 November, 2010 Posted by | Ubuntu | , , , , , , , | 6 Comments