KShell:tildeExpand: Return filename if homedir is empty

Often cache and automatic backup files are saved with ~ prefix. Our tilde-expand method returns empty in cases where the ~file does not match an username.

In those cases, just return the filename instead.

Also updated autotest.

BUG: 317513

Merge request reports

Loading