diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2023-02-20 13:32:53 -0600 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2023-02-20 14:01:14 -0600 |
commit | d015cb475e7898d86a02ed258bada5b25fe81326 (patch) | |
tree | 5c6d785d379b2aa48a15264625186650c2e809d9 /HACKING | |
parent | 603daf68446c83af5e6cdc87e6b3b651a7f2e4c2 (diff) | |
download | groff-git-d015cb475e7898d86a02ed258bada5b25fe81326.tar.gz |
[man]: Improve portability of a test.1.23.0.rc3
* tmac/tests/an_TS-do-not-keep-tables-when-cR-set.sh: Improve
portability of script by using shell constructs instead of the
nonstandard GNU coreutils 'seq' utility. Resolves test failure on
Solaris 10.
* HACKING: Document this problem.
Diffstat (limited to 'HACKING')
-rw-r--r-- | HACKING | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -83,6 +83,15 @@ Here are some portability notes on writing automated tests. available at the Open Group's web site. https://pubs.opengroup.org/onlinepubs/009656399/toc.pdf +* The GNU coreutils "seq" command is handy but not standardized by + POSIX. Replace it with a while loop. + + seq 53 + n=1; while [ $n -le 53 ]; do echo $n; n=$(( n + 1 )); done + + "unset" is supported by POSIX-conformant shell; use it to remove + temporary shell variables after use. + * The "od" command on macOS can put extra space characters (i.e., spaces that don't correspond to the input) at the ends of lines when using the "od -t c" format; GNU od does not. |