fish-shell/fish-rust
Mahmoud Al-Qudsi 85d8f2b27f Fix HAS_WORKING_TTY_TIMESTAMPS in rust
Like the WSL check, this was incorrectly assuming WSL implies
cfg(windows) when it's actually picked up as Linux.

Also, improve over the C++ code by not relying on the build-time WSL
status to determine if we are running on WSL at runtime since it's often
the case that the fish binaries are built on a non-WSL host (for
packaging) then executed on a WSL only at runtime.

(But it's ok to assume if fish has been built for Windows or not Linux
that it will either be run or not run on top of a Win32 character device
system.)

Also, port of the comment and relevant WSL and fish issue links over
from the CPP codebase for posterity.
2023-04-26 16:05:24 -05:00
..
src Fix HAS_WORKING_TTY_TIMESTAMPS in rust 2023-04-26 16:05:24 -05:00
widestring-suffix Initial Rust commit 2023-02-02 19:34:47 -07:00
build.rs Port AST to Rust 2023-04-16 17:46:56 +02:00
Cargo.lock Env stubs for path port 2023-04-21 13:57:29 +02:00
Cargo.toml Env stubs for path port 2023-04-21 13:57:29 +02:00