Many times, there are slight inconsistencies between two similar linux machines, where (for example) tmux supports colours on Machine M1, and does not support colours on Machine M2, or vi adds comments and formatting automatically on M1 but not on M2, or bash prompt has line-warping on or off, ssh options may not match.
Usually, we can try "strace bash" or "strace ssh" or "ssh -vvv" and "man vi" and look for standard files getting accessed. But , in nonstandard installations , (including customised compilations) these locations may not be complete.
In some cases, we can not even use strace or pass verbose options, eg logon shells, or some script calling some other scripts which call the tool in question.
So my question is : is there any standard method and tool which can help in finding all configuration files accessed by some tool ? Specific example : on M1, bash has line-warp, while on M2, it does not, even though all relevant parameters/files (.bashrc/.inputrc) are as expected and same on both M1 and M2.