Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions Bash2pyManual.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
This is Edition 4.2, last updated 28 December 2010,
of The GNU Bash Reference Manual,
for Bash, Version 4.2.
Hacked to document Bash2py by Ian Davis
Hacked to document Bash2py by Michael Wood, Ian Davis

Copyright (C) 1988-2011 Free Software Foundation, Inc.

Expand Down Expand Up @@ -363,16 +363,16 @@ <h2 class="chapter">1 Introduction</h2>
<h3 class="section">1.1 What is Bash2py?</h3>
<p>
<font color=purple>
Bash2py is a rough and ready translator from Bash to Python. Python is
generally considered superior to Bash, and it is therefore desirable to
Bash2py is a rough and ready transpiler from Bash to Python. Python is
a more feature-rich language than Bash, and it is therefore desirable to
be able to migrate from legacy Bash code, to Python.
</font>
<p>
<p>Bash is the shell, or command language interpreter,
for the <small>GNU</small> operating system.
The name is an acronym for the &lsquo;<samp>Bourne-Again SHell</samp>&rsquo;,
a pun on Stephen Bourne, the author of the direct ancestor of
the current Unix shell <code>sh</code>,
named after Stephen Bourne, author of
the Unix shell <code>sh</code>, the direct ancestor of bash,
which appeared in the Seventh Edition Bell Labs Research version
of Unix.
</p>
Expand Down Expand Up @@ -1483,7 +1483,7 @@ <h4 class="subsubsection">3.2.4.2 Conditional Constructs</h4>
syntax. If the operator was <samp>!=</samp> the result of such a regular
expression comparison is negated.</font>
</p>
<p>An additional binary operator, <font color=orange>&lsquo;<samp>=~</samp>&rsquo;</font>, is available, with the same
<p>An additional binary operator, <font color=green>&lsquo;<samp>=~</samp>&rsquo;</font>, is available, with the same
precedence as &lsquo;<samp>==</samp>&rsquo; and &lsquo;<samp>!=</samp>&rsquo;.
When it is used, the string to the right of the operator is considered
an extended regular expression and matched accordingly (as in <i>regex</i>3)).
Expand Down Expand Up @@ -2503,7 +2503,7 @@ <h4 class="subsection">3.5.3 Shell Parameter Expansion</h4>
</p>
</dd>
</font>
<font color=red>
<font color=green>
<dt><code>${<var>parameter</var>:<var>offset</var>}</code></dt>
<dt><code>${<var>parameter</var>:<var>offset</var>:<var>length</var>}</code></dt>
<dd><p>Expands to up to <var>length</var> characters of <var>parameter</var>
Expand Down Expand Up @@ -2918,7 +2918,7 @@ <h4 class="subsubsection"><font color=orange>3.5.8.1 Pattern Matching</font></h4
literally.
</p>
<p>The special pattern characters have the following meanings
<font color=orange>in Bash but not necessarily Python</font>:
<font color=orange>that we have attempted to translate into Python equivalents</font>:
</p><dl compact="compact">
<dt><code>*</code></dt>
<dd><p>Matches any string, including the null string.
Expand Down Expand Up @@ -4727,7 +4727,7 @@ <h3 class="section">4.2 Bash Builtin Commands</h3>
If the <samp>-e</samp> option is given, interpretation of the following
backslash-escaped characters is enabled.
<p>
<font color=purple>Output for python assumes the version 3 format of the print statement. For earlier versions the (..) around the text will print, and the -n option will generate a syntax error.</font>
<font color=purple>Bash2py generates its output in python version 3.
<p>
<font color=red>
The <samp>-E</samp> option disables the interpretation of these escape characters,
Expand Down Expand Up @@ -12675,8 +12675,8 @@ <h2 class="appendix">Appendix A Reporting Bugs</h2>
<a href="ftp://ftp.gnu.org/pub/gnu/bash/">ftp://ftp.gnu.org/pub/gnu/bash/</a>.
<font color=purple>
The latest version of Bash2Py is available at:
<a href="http://www.swag.uwaterloo.ca/bash2py">
www.swag.uwaterloo.ca/bash2py</a>
<a href="https://github.com/clarity20/bash2py">
https://github.com/clarity20/bash2py</a>
</font>
</p>
<p>Once you have determined that a bug actually exists, use the
Expand All @@ -12686,8 +12686,8 @@ <h2 class="appendix">Appendix A Reporting Bugs</h2>
to <a href="mailto:bug-bash@gnu.org">bug-bash@gnu.org</a> or posted to the Usenet
newsgroup <code>gnu.bash.bug</code>.
<font color=purple>Contact information for Bash2Py can be found at:
<a href="http://www.swag.uwaterloo.ca/bash2py">
www.swag.uwaterloo.ca/bash2py</a>
<a href="https://github.com/clarity20/bash2py">
https://github.com/clarity20/bash2py</a>
</font>
</p>
<p>All bug reports should include:
Expand Down