LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 09-22-2012, 10:07 AM   #1
Zimo
LQ Newbie
 
Registered: Sep 2012
Posts: 26

Rep: Reputation: Disabled
From Dash to Bash


Hi guys, i'm new and i'm trying to build LFS using linux mint 12 - Lisa - LXDE. Using version-check.sh i found i have dash instead of bash. I searched online and i've found that dash will be a source of trouble. So my question is: how can i change from dash to bash?

However i have another question: if i type "echo $0" i have " /bin/bash". Is it correct?

Thanks for answers.
 
Old 09-22-2012, 11:12 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,698
Blog Entries: 1

Rep: Reputation: 243Reputation: 243Reputation: 243
Hi

If the version check test failed then
Code:
rm -v /bin/sh
Code:
ln -s /bin/bash /bin/sh
You can post the output of version-check if unsure
 
Old 09-22-2012, 11:31 AM   #3
Zimo
LQ Newbie
 
Registered: Sep 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
This is the output of version-check.sh:

Quote:
+bash, version 4.2.10(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.21.53.20110810
bison (GNU Bison) 2.4.1
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.5, 10-Dec-2007.
Coreutils: 8.5
diff (GNU diffutils) 3.0
find (GNU findutils) 4.4.2
GNU Awk 3.1.8
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
(Ubuntu EGLIBC 2.13-20ubuntu5.1) 2.13
grep (GNU grep) 2.9
gzip 1.3.12
Linux version 3.0.0-12-generic (buildd@vernadsky) (gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) ) #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011
m4 (GNU M4) 1.4.16
GNU Make 3.81
patch 2.6.1
Perl version='5.12.4';
GNU sed version 4.2.1
tar (GNU tar) 1.25
version-check.sh: line 30: makeinfo: command not found
Texinfo:
xz (XZ Utils) 5.0.0
gcc compilation OK
You can see bin/dash: but when i type echo..

Quote:
simone-su@netbook ~ $ echo $0
/bin/bash
 
Old 09-22-2012, 11:34 AM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,698
Blog Entries: 1

Rep: Reputation: 243Reputation: 243Reputation: 243
Hi

Code:
echo $SHELL
also you need to fix version-check.sh: line 30: makeinfo: command not found
Texinfo:

The output of the script shows dash /bin/sh -> /bin/dash

Last edited by spiky0011; 09-22-2012 at 11:37 AM.
 
Old 09-22-2012, 11:36 AM   #5
Zimo
LQ Newbie
 
Registered: Sep 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
here it is:

Quote:
simone-su@netbook ~ $ echo $SHELL
/bin/bash
 
Old 09-22-2012, 11:41 AM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,698
Blog Entries: 1

Rep: Reputation: 243Reputation: 243Reputation: 243
Thats interesting, Although i would make the system meet the requirements to be safe. Maybe someone can explain!
 
Old 09-22-2012, 11:46 AM   #7
Zimo
LQ Newbie
 
Registered: Sep 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
I fixed makeinfo installing texinfo. So i can try to continue with this background?

EDIT: i've tried using version-check on ubuntu 10.04 ( same computer, other partition ) and the result is the same!

Last edited by Zimo; 09-22-2012 at 11:49 AM.
 
Old 09-22-2012, 11:50 AM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,698
Blog Entries: 1

Rep: Reputation: 243Reputation: 243Reputation: 243
I would change the dash to bash so the script clears all failures to be on safe side, that is what I would do, unless someone can confirm that it will work. If you leave it You might end up with trouble
 
Old 09-22-2012, 11:59 AM   #9
Zimo
LQ Newbie
 
Registered: Sep 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
I'm sorry, you mean installing bash or simply changing directory name?
 
Old 09-22-2012, 12:17 PM   #10
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,698
Blog Entries: 1

Rep: Reputation: 243Reputation: 243Reputation: 243
Change link as I posted earlier

Last edited by spiky0011; 09-22-2012 at 12:39 PM.
 
Old 09-23-2012, 03:19 AM   #11
Zimo
LQ Newbie
 
Registered: Sep 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
Ok! Link, not directory name..thanks. However, maybe i'll try and i'll tell you. I spent time in last days beginning the build, but i stopped just after glibc due to link issues: can these two things be connected?
 
Old 09-23-2012, 03:27 AM   #12
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,698
Blog Entries: 1

Rep: Reputation: 243Reputation: 243Reputation: 243
I would start again your not that far in lets get it right from the beginning
 
Old 09-23-2012, 03:29 AM   #13
Zimo
LQ Newbie
 
Registered: Sep 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
Of course. I erased everything on that partition and start again from the beginning.
 
Old 10-02-2012, 12:11 PM   #14
Zimo
LQ Newbie
 
Registered: Sep 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
Spiky, it worked.
 
Old 10-02-2012, 12:50 PM   #15
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,698
Blog Entries: 1

Rep: Reputation: 243Reputation: 243Reputation: 243
Hi

When you say it worked explain???

Last edited by spiky0011; 10-02-2012 at 12:53 PM.
 
  


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
[SOLVED] Have sh Be Something Other That Bash/Dash. Zssfssz Debian 5 03-15-2012 08:48 AM
bash (esc dash) key combo? szboardstretcher Linux - Software 1 08-23-2011 01:34 PM
BASH/Dash : how to put a JPEG or PNG into the Clipboard? Xeratul Linux - General 10 12-08-2010 03:06 PM
gtkdialog + glade + bash/dash/sh librano Programming 4 11-26-2009 02:46 AM
Need help with BASH and DASH cosmicbrat Linux - Software 1 03-12-2009 08:39 PM


All times are GMT -5. The time now is 03:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration