* groffer.sh: get rid of `local' in functions (non-POSIX)
commitba9e6cf29a97f0aa70c750e66a1196e3672b9762
authorWerner LEMBERG <wl@gnu.org>
Fri, 24 Jun 2005 19:52:39 +0000 (24 19:52 +0000)
committerWerner LEMBERG <wl@gnu.org>
Fri, 24 Jun 2005 19:52:39 +0000 (24 19:52 +0000)
treeaf602caa5d40db6cd36c722bfde50f596d78a05a
parent7f88cd4440791f171cf2c4a46bbbcd0adabf82a4
* groffer.sh: get rid of `local' in functions (non-POSIX)
- Replace local variables by variable names with a special prefix
that is an abbreviation of the corresponding function name (quasi-
local variables).
- Unset the quasi-local function variables before returning.
- _t_e_s_t_f_u_n_c_(): Remove tests for local and global
variables.
- Add quasi-local variables for saving the content of
single-character variables.
- Remove some unused local and global variables.
- Several variables were forgotten to make local.  They are now
made quasi-local.

* groffer.sh: other corrections
- $return_var: New function (after `eval') for an arbitrary
return value.
- obj*(): Add return modes.
- Rewrite tests for `true' and `false'.
- Add function names to error calls where it was forgotten.
- for: Replace `for x in "$@"' by `for x'.
- set: Replace `set -- ...' by `set x ...; shift'.
- sed: Replace `\|.*|s|...|...|' by `s|...|...|'.

* README_SH:
- Add information on the removing of `local'.
- New section for non-POSIX shell restrictions.
contrib/groffer/ChangeLog
contrib/groffer/README_SH
contrib/groffer/groffer.sh