Ignore:
Timestamp:
03/24/2020 07:19:44 PM (4 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
fa3edfef
Parents:
914049f6
Message:

Format postlfs/security and misc/forgotten

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22884 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/shells/dash.xml

    r914049f6 r47274444  
    3030    <title>Introduction to Dash</title>
    3131
    32     <para><application>Dash</application> is a POSIX compliant shell. It can be
    33     installed as /bin/sh or as the default shell for either <systemitem
    34     class="username">root</systemitem> or a second user with a userid of 0. It
    35     depends on fewer libraries than the <application>Bash</application> shell
    36     and is therefore less likely to be affected by an upgrade problem or disk
    37     failure. <application>Dash</application> is also useful for checking that
    38     a script is completely compatible with POSIX syntax.</para>
     32    <para>
     33      <application>Dash</application> is a POSIX compliant shell. It can be
     34      installed as /bin/sh or as the default shell for either <systemitem
     35      class="username">root</systemitem> or a second user with a userid of 0.
     36      It depends on fewer libraries than the <application>Bash</application>
     37      shell and is therefore less likely to be affected by an upgrade problem
     38      or disk failure. <application>Dash</application> is also useful for
     39      checking that a script is completely compatible with POSIX syntax.
     40    </para>
    3941
    4042    &lfs91_checked;
     
    4345    <itemizedlist spacing="compact">
    4446      <listitem>
    45         <para>Download (HTTP): <ulink url="&dash-download-http;"/></para>
    46       </listitem>
    47       <listitem>
    48         <para>Download (FTP): <ulink url="&dash-download-ftp;"/></para>
    49       </listitem>
    50       <listitem>
    51         <para>Download MD5 sum: &dash-md5sum;</para>
    52       </listitem>
    53       <listitem>
    54         <para>Download size: &dash-size;</para>
    55       </listitem>
    56       <listitem>
    57         <para>Estimated disk space required: &dash-buildsize;</para>
    58       </listitem>
    59       <listitem>
    60         <para>Estimated build time: &dash-time;</para>
     47        <para>
     48          Download (HTTP): <ulink url="&dash-download-http;"/>
     49        </para>
     50      </listitem>
     51      <listitem>
     52        <para>
     53          Download (FTP): <ulink url="&dash-download-ftp;"/>
     54        </para>
     55      </listitem>
     56      <listitem>
     57        <para>
     58          Download MD5 sum: &dash-md5sum;
     59        </para>
     60      </listitem>
     61      <listitem>
     62        <para>
     63          Download size: &dash-size;
     64        </para>
     65      </listitem>
     66      <listitem>
     67        <para>
     68          Estimated disk space required: &dash-buildsize;
     69        </para>
     70      </listitem>
     71      <listitem>
     72        <para>
     73          Estimated build time: &dash-time;
     74        </para>
    6175      </listitem>
    6276    </itemizedlist>
     
    6579
    6680    <bridgehead renderas="sect4">Optional</bridgehead>
    67     <para role="optional"><ulink url="http://www.thrysoee.dk/editline/">libedit</ulink>
    68     (command line editor library)</para>
     81    <para role="optional">
     82      <ulink url="http://www.thrysoee.dk/editline/">libedit</ulink>
     83      (command line editor library)
     84    </para>
    6985
    7086    <para condition="html" role="usernotes">User Notes:
     
    7692    <title>Installation of Dash</title>
    7793
    78     <para>Install <application>Dash</application> by running the following
    79     commands:</para>
     94    <para>
     95      Install <application>Dash</application> by running the following
     96      commands:
     97    </para>
    8098
    8199<screen><userinput>./configure --bindir=/bin --mandir=/usr/share/man &amp;&amp;
    82100make</userinput></screen>
    83101
    84     <para>This package does not come with a test suite.</para>
    85 
    86     <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
     102    <para>
     103      This package does not come with a test suite.
     104    </para>
     105
     106    <para>
     107      Now, as the <systemitem class="username">root</systemitem> user:
     108    </para>
    87109
    88110<screen role="root"><userinput>make install</userinput></screen>
    89111
    90     <para>If you would like to make <command>dash</command> the default
    91     <command>sh</command>, recreate the <filename>/bin/sh</filename>
    92     symlink as the <systemitem class="username">root</systemitem> user:</para>
    93 
    94     <note><para>If you create the symbolic link from <command>dash</command>
    95     to  <command>sh</command>, you will need to reset the link to
    96     <command>bash</command> to build LFS.  </para></note>
     112    <para>
     113      If you would like to make <command>dash</command> the default
     114      <command>sh</command>, recreate the <filename>/bin/sh</filename>
     115      symlink as the <systemitem class="username">root</systemitem> user:
     116    </para>
     117
     118    <note>
     119      <para>
     120        If you create the symbolic link from <command>dash</command>
     121        to  <command>sh</command>, you will need to reset the link to
     122        <command>bash</command> to build LFS.
     123      </para>
     124    </note>
    97125
    98126<screen role="nodump"><userinput>ln -svf dash /bin/sh</userinput></screen>
     
    103131    <title>Command Explanations</title>
    104132
    105     <para><parameter>--bindir=/bin</parameter>: This parameter places the
    106     <command>dash</command> binary into the root filesystem.</para>
    107 
    108     <para><option>--with-libedit</option>: To compile <application>Dash</application>
    109     with libedit support.</para>
     133    <para>
     134      <parameter>--bindir=/bin</parameter>: This parameter places the
     135      <command>dash</command> binary into the root filesystem.
     136    </para>
     137
     138    <para>
     139      <option>--with-libedit</option>: To compile
     140      <application>Dash</application> with libedit support.
     141    </para>
    110142
    111143  </sect2>
     
    117149      <title>Config Files</title>
    118150
    119       <para><application>Dash</application> sources
    120       <filename>/etc/profile</filename> and
    121       <filename>~/.profile</filename></para>
     151      <para>
     152        <application>Dash</application> sources
     153        <filename>/etc/profile</filename> and
     154        <filename>~/.profile</filename>
     155      </para>
    122156
    123157      <indexterm zone="dash dash-config">
     
    134168      <title>Configuration Information</title>
    135169
    136       <para>Update <filename>/etc/shells</filename> to include the
    137       <application>Dash</application> shell by issuing the following command
    138       as the <systemitem class="username">root</systemitem> user:</para>
     170      <para>
     171        Update <filename>/etc/shells</filename> to include the
     172        <application>Dash</application> shell by issuing the following command
     173        as the <systemitem class="username">root</systemitem> user:
     174      </para>
    139175
    140176<screen role="root"><userinput>cat &gt;&gt; /etc/shells &lt;&lt; "EOF"
     
    169205        <term><command>dash</command></term>
    170206        <listitem>
    171           <para>is a POSIX compliant shell.</para>
     207          <para>
     208            is a POSIX compliant shell.
     209          </para>
    172210          <indexterm zone="dash dash-prog">
    173211            <primary sortas="b-dash">dash</primary>
Note: See TracChangeset for help on using the changeset viewer.