Unable to open remote file (/ssh:host:path/file) via command line
- Dominant language
- Emacs Lisp
- Stars
- 22.7k
- Forks
- 3.1k
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 4
Description
### What did you expect to happen?
Open the remote file (e.g `/ssh:host:path/file.org`) in emacs.
### What actually happened?
I get the following error:
```
Directory `/ssh:host:path/' does not exist! Create it? (y or n)
```
Entering 'n' results with:
```
Error (doom-first-file-hook): Error running hook "global-git-commit-mode" because: (file-missing Setting current directory No such file or directory /ssh:host:path/file/)
```
### Describe your attempts to resolve the issue
Running the following, excluding Doom, opens the file successfully:
```
emacs -Q /ssh:host:path/file.org
```
Additionally, I can successfully open the file with Doom as long as I run `emacs` without the file as the command line argument and open the file after Emacs is open.
### Steps to reproduce
```
emacs /ssh:host:path/file.org
```
### System Information
https://pastebin.com/FaZKtNas
Contributor guide
Assessment
This issue has not been assessed yet.