mirror of https://github.com/tLDP/LDP
Fixed the spelling of Rohit Patil's name. Added some PARA elements around the
contents of LISTITEM elements. Changed the URI of the DTD in the DOCTYPE element to work around a stupid bug with xsltproc -- Saqib Ali <docbook.xml@gmail.com> said it was ok to use the OASIS URI instead of the docbook.org URI.
This commit is contained in:
parent
6852520e42
commit
bac7a21d7f
|
@ -1,15 +1,7 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?> <!-- -*- Docbook-XML -*- -->
|
||||
|
||||
<!--
|
||||
IMPORTANT! Before doing any CVS commits, change the DTD location from:
|
||||
|
||||
"file:///cygdrive/c/franl/work/ldp/dtd-4.2/docbookx.dtd"
|
||||
to:
|
||||
"http://docbook.org/xml/4.2/docbookx.dtd"
|
||||
-->
|
||||
|
||||
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||
"http://docbook.org/xml/4.2/docbookx.dtd"
|
||||
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
|
||||
[
|
||||
<!ENTITY ldp "Linux Documentation Project">
|
||||
<!ENTITY ldpurl "http://www.tldp.org/">
|
||||
|
@ -21,7 +13,7 @@ to:
|
|||
************************************************************************
|
||||
Bash Scripting Introduction HOWTO
|
||||
Maintainers: Francis Litterio <franl@world.std.com>,
|
||||
Rohit Patel <rvpatil@gmail.com>
|
||||
Rohit Patil <rvpatil@gmail.com>
|
||||
************************************************************************
|
||||
-->
|
||||
|
||||
|
@ -37,7 +29,7 @@ Maintainers: Francis Litterio <franl@world.std.com>,
|
|||
</author>
|
||||
|
||||
<author>
|
||||
<firstname>Rohit</firstname><surname>Patel</surname>
|
||||
<firstname>Rohit</firstname><surname>Patil</surname>
|
||||
<affiliation>
|
||||
<address><email>rvpatil@gmail.com</email></address>
|
||||
</affiliation>
|
||||
|
@ -407,21 +399,25 @@ Hello world
|
|||
|
||||
<orderedlist>
|
||||
<listitem>
|
||||
Change the permissions on the script to allow you to execute it.
|
||||
This can be done with the command
|
||||
"<computeroutput><command>chmod u+x hello</command></computeroutput>".
|
||||
You don't have to grant execute permission just to yourself. The
|
||||
command
|
||||
"<computeroutput><command>chmod ugo+x hello</command></computeroutput>"
|
||||
allows everyone to execute your script. See the man page for the
|
||||
<computeroutput><command>chmod</command></computeroutput> command
|
||||
for more information.
|
||||
<para>
|
||||
Change the permissions on the script to allow you to execute it.
|
||||
This can be done with the command
|
||||
"<computeroutput><command>chmod u+x hello</command></computeroutput>".
|
||||
You don't have to grant execute permission just to yourself. The
|
||||
command
|
||||
"<computeroutput><command>chmod ugo+x hello</command></computeroutput>"
|
||||
allows everyone to execute your script. See the man page for the
|
||||
<computeroutput><command>chmod</command></computeroutput> command
|
||||
for more information.
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
<listitem id="item-dir-path">
|
||||
Make sure that the directory containing the script is one of the
|
||||
directories listed in the value of your <envar>PATH</envar>
|
||||
environment variable.
|
||||
<para>
|
||||
Make sure that the directory containing the script is one of the
|
||||
directories listed in the value of your <envar>PATH</envar>
|
||||
environment variable.
|
||||
</para>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
|
||||
|
@ -432,35 +428,43 @@ Hello world
|
|||
|
||||
<orderedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
Create a directory named "<filename>bin</filename>" under your home
|
||||
directory. You can do this with the command
|
||||
"<computeroutput><command>mkdir $HOME/bin</command></computeroutput>".
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
Move the script to that directory. You can do this with the command
|
||||
"<computeroutput><command>mv hello $HOME/bin</command></computeroutput>".
|
||||
<para>
|
||||
Move the script to that directory. You can do this with the command
|
||||
"<computeroutput><command>mv hello $HOME/bin</command></computeroutput>".
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
List the full pathname of that directory in the value of your
|
||||
<envar>PATH</envar> environment variable (We cover variables in more
|
||||
detail in <xref linkend="sect-variables"/>). You can do this by
|
||||
putting the following line into your interactive Bash startup script
|
||||
(which is the file <filename>.bashrc</filename> in your home
|
||||
directory):
|
||||
<para>
|
||||
List the full pathname of that directory in the value of your
|
||||
<envar>PATH</envar> environment variable (We cover variables in more
|
||||
detail in <xref linkend="sect-variables"/>). You can do this by
|
||||
putting the following line into your interactive Bash startup script
|
||||
(which is the file <filename>.bashrc</filename> in your home
|
||||
directory):
|
||||
|
||||
<blockquote>
|
||||
<para>
|
||||
<computeroutput>PATH="$HOME/bin:$PATH"</computeroutput>
|
||||
</para>
|
||||
</blockquote>
|
||||
<blockquote>
|
||||
<para>
|
||||
<computeroutput>PATH="$HOME/bin:$PATH"</computeroutput>
|
||||
</para>
|
||||
</blockquote>
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
Terminate your shell, and start a new one. You have to do this
|
||||
because the changes to your <filename>.bashrc</filename> file only
|
||||
take effect in shells started after you save the changes.
|
||||
<para>
|
||||
Terminate your shell, and start a new one. You have to do this
|
||||
because the changes to your <filename>.bashrc</filename> file only
|
||||
take effect in shells started after you save the changes.
|
||||
</para>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
|
||||
|
|
Loading…
Reference in New Issue