#1484 Issue closed: Redesign _input-output-functions.sh in particular the I/O functions

Labels: enhancement, cleanup, discuss / RFC, won't fix / can't fix / obsolete

jsmeix opened issue at 2017-09-12 11:23:

The current _input-output-functions.sh is a mix-up of
function definitions plus initialization code like
exit tasks setup and preparation for redirections.

The initialization code should be moved
into a proper 'init' stage, cf.
https://github.com/rear/rear/issues/1251

The function definitions are a mix-up of
plain message output functions and user input functions
plus exit task functions and error/bug abort functions.

The exit task functions and error/bug abort functions
should be moved into separated ...-functions.sh scripts.

The plain message output functions are very many
(probably too many) for various very specific kind
of message output each one with or without logging.

The plain message output functions should be simplified
into only a few ones usually always with logging because
usually there should be the full information in the log file, cf.
https://github.com/rear/rear/issues/1395#issuecomment-311916095
(an exception could be output of secrets like passwords
or things like that).

jsmeix commented at 2020-03-06 14:13:

I won't do that.
I have no time for cleanup without an actual benefit for the user.
I might do it when the current mess actually hurts us, cf.
https://github.com/rear/rear/issues/1251#issuecomment-595785059


[Export of Github issue for rear/rear.]