You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to have an OS aware File::PATH_SEPARATOR constant. Unlike the regular File::SEPARATOR constant, this constant represents the character used to separate directories in the $PATH environment variable. On Windows the path separator is ';', where as on *nix systems it is ':'.
* These constants represent the separator character used to separate individual
directories in the $PATH environment variable.
On Windows the separator is actually ';', where as on Unix based systems it is ':'.
Resolvescrystal-lang#11305
There might be a point that it's not very discoverable in the Process namespace. So we could consider moving it somewhere else.
I think the Path namespace would be a better choice than File, though.
I think Process is the best namespace for it. These aren't actually part of a path in any way and they are needed only to be able to pass this information across processes.
And even if it isn't the best location, the difference isn't enough to justify a move with a deprecation.
Feature Request
It would be useful to have an OS aware
File::PATH_SEPARATOR
constant. Unlike the regularFile::SEPARATOR
constant, this constant represents the character used to separate directories in the$PATH
environment variable. On Windows the path separator is';'
, where as on *nix systems it is':'
.Example Code
Usage
The text was updated successfully, but these errors were encountered: