Rebased version of #87.
Patch reduces the set of commands to whitelist down to one.
Also, it changes the calling convention used by the PM unit from setting an
envvar to passing a fixed string.
Some misc shellcheck warnings are also cleaned up, most significantly:
quoting in the dry run code
quoting in the command line construction
the fresh display search code (avoiding parsing ls output)
Note: implementation nonessentially uses Bash 4 features.
With minor duplication, older bashes can be supported.
Rebased version of #87. Patch reduces the set of commands to whitelist down to one. Also, it changes the calling convention used by the PM unit from setting an envvar to passing a fixed string.
Some misc shellcheck warnings are also cleaned up, most significantly:
Note: implementation nonessentially uses Bash 4 features. With minor duplication, older bashes can be supported.