2fe8b5d313
This was an issue with "--no-execute", which has no variables and therefore no $HOME: ```fish fish --no-execute /path/to/file ``` would say the error is in `~/path/to/file`. Instead, since this is just for a message, we simply return the filename without doing the replacement. Fixes #10171 Port of e3185850213b64fa6d93546e5b6b466fd14eb4e7