|
Before, if the program was run with only a source argument, that has no
destination associated (e.g. in the configuration file), the destination
was accepted as the empty string, which translated to the local
directory (due to relative adressing).
This was due to the shell option nullglob, which now is unset in any
situations where `test -v' is used, which currently is only the case in
get_args. It is `test -v' that failed to recognize an undefined
variable.
|
|
Create wrapper functions that take a host and a function with named
arguments. The supplied function is the to be executed on the
specified host, which may be the empty string signifying local
execution.
These wrapper functions essentially export the to be run function and
any of its recursive dependencies, further the named arguments as
variables, to the remote host, and run the function remotely. That is,
if the host is non-local.
Also,
- use appropriate function names to differentiate between destination
and source host wherever applicable.
- add comments,
- enhance TODO and README,
- rename some variables in order to increase consistency,
- move some global declarations further upward,
- make variables readonly when reasonable,
- use named return and exit codes,
- add a general `ask'-function.
|