bash-exp.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <sect2>
  2. <title>Command explanations</title>
  3. <para>
  4. <userinput>--enable-static-link:</userinput> This configure
  5. option causes Bash to be linked statically
  6. </para>
  7. <para>
  8. <userinput>--prefix=$LFS/usr:</userinput> This configure option installs
  9. all of Bash's files under the $LFS/usr directory, which becomes the /usr
  10. directory after the user chrooted into $LFS or when he rebooted
  11. the system into LFS.
  12. </para>
  13. <para>
  14. <userinput>--bindir=$LFS/bin:</userinput> This installs the executable
  15. files in $LFS/bin. We do this because we want bash to be in /bin, not in
  16. /usr/bin. One reason being: the /usr partition might be on a seperate
  17. partition which has to be mounted at some point. Before that partition is
  18. mounted a user needs and will want to have bash available (it will be hard to
  19. execute the boot scripts without a shell for instance).
  20. </para>
  21. <para>
  22. <userinput>--disable-nls:</userinput> This disables the build of NLS
  23. (National Language Support). It's only a waste of time for now as Bash
  24. will be reinstalled in the next chapter.
  25. </para>
  26. <para>
  27. <userinput>--with-curses:</userinput> This causes Bash to be linked
  28. against the curses library instead of the default termcap library which
  29. is becoming obsolete.
  30. </para>
  31. <para>
  32. <userinput>ln -s bash sh:</userinput> This command creates the sh
  33. symlink that points to bash. Most scripts run themselves via 'sh'
  34. (invoked by the #!/bin/sh as the first line in the scripts) which
  35. invokes a special bash mode. Bash will then behave (as closely as
  36. possible) as the original Bourne shell.
  37. </para>
  38. <para>
  39. The <userinput>&amp;&amp;</userinput>'s at the end of every line cause
  40. the next command only to be executed when the previous command exists
  41. with a return value of 0 indicating success. In case all of these
  42. commands are copy&amp;pasted
  43. on the shell is is important to be ensured that if
  44. ./configure fails, make isn't being executed and likewise if make fails
  45. that make install isn't being executed, and so forth.
  46. </para>
  47. </sect2>