From 2400736efff1e26e5b3997eddc9daa0d02c89fdf Mon Sep 17 00:00:00 2001
From: Michael Wood
-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.
Bash is the shell, or command language interpreter,
for the GNU operating system.
The name is an acronym for the ‘Bourne-Again SHell’,
-a pun on Stephen Bourne, the author of the direct ancestor of
-the current Unix shell 1 Introduction
1.1 What is Bash2py?
sh,
+named after Stephen Bourne, author of
+the Unix shell sh, the direct ancestor of bash,
which appeared in the Seventh Edition Bell Labs Research version
of Unix.
3.2.4.2 Conditional Constructs
syntax. If the operator was != the result of such a regular
expression comparison is negated.
An additional binary operator, ‘=~’, is available, with the same +
An additional binary operator, ‘=~’, is available, with the same precedence as ‘==’ and ‘!=’. When it is used, the string to the right of the operator is considered an extended regular expression and matched accordingly (as in regex3)). @@ -2503,7 +2503,7 @@
${parameter:offset}${parameter:offset:length}Expands to up to length characters of parameter @@ -2918,7 +2918,7 @@
The special pattern characters have the following meanings -in Bash but not necessarily Python: +that we have attempted to translate into Python equivalents:
*Matches any string, including the null string. @@ -4727,7 +4727,7 @@
-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.
+Bash2py generates its output in python version 3.
The -E option disables the interpretation of these escape characters,
@@ -12675,8 +12675,8 @@ Once you have determined that a bug actually exists, use the
@@ -12686,8 +12686,8 @@ Appendix A Reporting Bugs
ftp://ftp.gnu.org/pub/gnu/bash/.
The latest version of Bash2Py is available at:
-
-www.swag.uwaterloo.ca/bash2py
+
+https://github.com/clarity20/bash2py
Appendix A Reporting Bugs
to bug-bash@gnu.org or posted to the Usenet
newsgroup gnu.bash.bug.
Contact information for Bash2Py can be found at:
-
-www.swag.uwaterloo.ca/bash2py
+
+https://github.com/clarity20/bash2py
All bug reports should include: