Deal with non-stationary case in bash scripts and tex.