Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Error in Linux Ubuntu ./update
Pecan:
It looks like my shell got set to something called "dash" during the update. I have no idea what that is.
Should I set my shell back to bash?
--- Code: ---pecan@ubuntu:~$ ll /bin/sh
lrwxrwxrwx 1 root root 4 2007-05-06 11:41 /bin/sh -> dash
--- End code ---
https://wiki.ubuntu.com/DashAsBinSh
--- Quote ---Dash as /bin/sh
In Ubuntu 6.10, the default system shell, /bin/sh, was changed to dash (the Debian Almquist Shell); previously it had been bash (the GNU Bourne-Again Shell). The same change will affect users of Ubuntu 6.06 LTS upgrading directly to Ubuntu 8.04 LTS. This document explains this change and what you should do if you encounter problems.
The default login shell remains bash.
--- End quote ---
Actually, I'm using Ubuntu 8.04, and this error only started after I accepted the second round of updates to 8.04
Jenna:
--- Quote from: Pecan on August 29, 2008, 06:19:28 pm ---It looks like my shell got set to something called "dash" during the update. I have no idea what that is.
Should I set my shell back to bash?
--- Code: ---pecan@ubuntu:~$ ll /bin/sh
lrwxrwxrwx 1 root root 4 2007-05-06 11:41 /bin/sh -> dash
--- End code ---
https://wiki.ubuntu.com/DashAsBinSh
--- Quote ---Dash as /bin/sh
In Ubuntu 6.10, the default system shell, /bin/sh, was changed to dash (the Debian Almquist Shell); previously it had been bash (the GNU Bourne-Again Shell). The same change will affect users of Ubuntu 6.06 LTS upgrading directly to Ubuntu 8.04 LTS. This document explains this change and what you should do if you encounter problems.
The default login shell remains bash.
--- End quote ---
Actually, I using Ubuntu 8.04
--- End quote ---
Try
--- Code: ---dpkg-reconfigure dash
--- End code ---
and if debconf asks whether "dash" should be installed as "/bin/sh" answer with no.
If that does not work you can set the link manually with
--- Code: ---ln -sf /bin/bash /bin/sh
--- End code ---
Both instructions have to be run as root.
Pecan:
Edit: I see that the "==" in SVN ./update got changed to a single "=".
Thanks.
After reading the complete blurb:
https://wiki.ubuntu.com/DashAsBinSh
--- Quote ---sudo dpkg-reconfigure dash
Beware that this is a more invasive change, will undo boot speed benefits, and there is even an outside chance that there are a few scripts that now depend on some feature of dash that bash does not provide! (We expect the last problem to be rare, as the feature set of dash is largely a subset of that offered by bash, but we mention it for completeness.)
--- End quote ---
I think I'd rather just leave Ubuntu alone. I'm not experienced enough in Linux to be playing around in it.
It's safer for me to change (in ./update) the "==" to a single "=" or change the "#!/bin/sh" to "#!/bin/bash" as stated in the Ubuntu page.
Thanks for the help
Navigation
[0] Message Index
[*] Previous page
Go to full version