Fabian Boehm 2fe8b5d313 Don't replace tilde for error messages if we have no $HOME
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
2023-12-28 10:20:28 +01:00
..
2023-12-23 23:00:50 +08:00
2021-08-30 17:16:19 +02:00