> fish --version
fish, version 3.1.2
> echo $version
3.1.2
> echo $PWD
F:\cygwin\home\thorsten
> c
assertion "!wd.empty() && wd.front() == sep && wd.back() == sep && "Invalid working directory, it must start and end with /"" failed: file "/home/ASchulma/dev/cygwin/fish/fish-3.1.2-2.x86_64/src/fish-3.1.2/src/wutil.cpp", line 482, function: wcstring path_normalize_for_cd(const wcstring&, const wcstring&)
0 [fish] fish 9070 cygwin_exception::open_stackdumpfile: Dumping stack trace to fish.exe.stackdump
Running fish on Cygwin from a shell which sets $PWD to a Windows path (PowerShell with Starship prompt) results in a core dump (see above).
The text was updated successfully, but these errors were encountered:
thorstenkampe
changed the title
Core dump on
Core dump on Cygwin when $PWD is a Windows path
Jan 17, 2021
Okay, so the issue here is that your path isn't like a unix-path starting from "/" on.
This asserts in normalizing the path, and if it didn't it would do something entirely non-sensical - for instance it doesn't handle \\, because that's not a unix thing.
We should probably just get the path again via getcwd if it doesn't start with a /.
Running fish on Cygwin from a shell which sets $PWD to a Windows path (PowerShell with Starship prompt) results in a core dump (see above).
The text was updated successfully, but these errors were encountered: