Randy Smith
6c7abe6e5b
Fixes #9671 ( #9750 )
2018-11-19 09:22:21 +01:00
Andreas Rumpf
8d850f7a69
deprecated ospaths ( #9665 )
2018-11-09 16:36:49 +01:00
Araq
37986d0ba8
ospaths docs: add 'basename' to theindex
2018-10-15 10:51:47 +02:00
Timothee Cour
a98b1a7764
fix #8341 : add lastPathPart ( #9116 )
2018-10-09 19:27:31 +02:00
Timothee Cour
b4edfa613b
[ospaths] simplify getConfigDir and introduce normalizePathEnd to make ( #8680 )
...
sure path endings are normalized with 0 or 1 trailing sep, taking care
of edge cases
2018-08-26 17:36:11 +02:00
Andreas Rumpf
1c3cfd74ff
make ospaths compile; fixes ospaths.getConfigDir for Posix
2018-08-23 17:55:00 +02:00
Kaushal Modi
d73b19e379
Look for user nim.cfg in "nim/" subdir in usual config dir locations ( #8662 )
...
Fixes https://github.com/nim-lang/Nim/issues/8661 .
2018-08-17 10:52:10 +02:00
Timothee Cour
87b2d2aad6
added a variant of quoteShellCommand that takes an openArray of arguments ( #8272 )
2018-08-16 14:10:16 +02:00
Dominik Picheta
6fffadb7fd
Merge pull request #8364 from timotheecour/pr_expandTilde
...
ospaths.expandTilde: handle ~ correctly; refactor to use DirSep, AltSep
2018-08-05 16:30:17 +01:00
Timothee Cour
13df807576
fix issue #8349 FileSystemCaseSensitive should be false on OSX ( #8411 )
2018-07-23 19:26:49 -05:00
Timothee Cour
20591845df
ospaths.expandTilde: handle ~ correctly; refactor to use DirSep, AltSep
2018-07-18 17:56:01 -07:00
Timothee Cour
40f44a0c16
fix issue #8251 ospaths.isAbsolute: out of bound errors ( #8291 )
...
* fix issue #8251 ospaths.isAbsolute: out of bound errors
* address comments
* add reference to a spec for quirky macos paths
2018-07-13 03:54:48 -04:00
Araq
8667899d53
hotfix: fixes possible out of bounds access in ospaths.joinPath
2018-07-07 02:31:43 +02:00
Tomohiro
c79f488027
Fix os.unixToNativePath proc returns wrong result( #8179 ) ( #8181 )
...
* Fix os.unixToNativePath proc returns wrong result(#8179 )
* Add tests for unixToNativePath
2018-07-02 17:14:26 +02:00
Tomohiro
a2b2bc1a36
Fixed #8173 ( #8175 )
2018-07-02 00:46:56 +02:00
Joey
559a7615ad
Nintendo switch support ( #8069 )
...
* Add config section for Nintendo Switch
* Add compiler configuration for Nintendo Switch and it's CPU
* Add specific lib code for Nintendo Switch
* Add GC support for Nintendo Switch
* Update changelog for Nintendo Switch
* Update changelog with more info about fixed paths
* Cleaned up GC memory management a bit
* Relocate docs for Switch
* Rename aarch64NoneElfGcc to nintendoSwitchGCC
* Remove armv8a57
* Fix installer.ini
* Reuse code in linux and amd64
* Add posix defs for nintendo switch
* Add more defined sections for nintendo switch
* Remove old comment
* Add what's not supported for Nintendo Switch docs
* Make nintendoswitch == posix
* Remove DEVKITPRO references from nim.cfg
* Make PR extccomp changes
* Remove Result type alias
* Add separate switch consts file
* Update docs for nintendo switch
* Fix travis errors with undefined consts and add correct wait.h procs
2018-06-27 12:35:09 +02:00
Araq
bbb0fd4eb7
remove deprecated stuff from the stdlib; introduce better deprecation warnings
2018-05-05 21:45:07 +02:00
Araq
ed79201d0b
make more tests green
2018-04-30 11:16:56 +02:00
Andreas Rumpf
b899713832
make more tests green
2018-04-29 01:48:21 +02:00
Yuriy Glukhov
c47ed6c537
Fixed ospaths compilation on js ( #6826 )
2017-11-28 01:52:49 +01:00
Fredrik Høisæther Rasch
f6a8cba7b5
Move quoteShell to ospaths ( #6794 )
...
Enables quoteShell on nimscript
2017-11-24 14:42:59 +01:00
Andreas Rumpf
b67ea9e73b
fixes #6327
2017-09-05 09:03:09 +02:00
Andreas Rumpf
50666a1f8b
refactor os.nim and ospaths.nim
2017-09-01 10:35:50 +02:00
Andreas Rumpf
80fab1d861
make ospaths compile for Android again, simplify its implementation, added a disclaimer
2017-08-30 11:08:49 +02:00
Fredrik Høisæther Rasch
c406d0b7a7
fixed createDir undeclared error on Android ( #6194 )
2017-08-08 13:29:25 +02:00
Fredrik Høisæther Rasch
c39e202976
Introduce first class support for Android ( #5772 )
2017-08-06 02:18:15 +02:00
Dominik Picheta
80aa02e7f9
Merge pull request #5748 from J3RN/meet-xdg-base-directory-spec
...
Modified ospath's getConfigDir to meet XDG spec
2017-05-16 14:11:31 +01:00
Dominik Picheta
27b571dd95
Fix different types for findExe's params across OS'.
2017-05-02 22:39:39 +01:00
Jonathan Arnett
a9de33643b
Appended to comment
2017-04-28 14:33:23 -04:00
Jonathan Arnett
9193bcaeec
Modified ospath's getConfigDir to meet XDG spec
...
I added a check for the XDG_CONFIG_DIR environment variable to meet the [freedesktop XDG Base Directory Specification](https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html )
2017-04-28 14:33:15 -04:00
Anatoly Galiulin
cb9d554ac9
Fix typo ( #5501 )
2017-03-10 16:18:56 +01:00
Yuriy Glukhov
fe0291f127
Import ospaths instead of include ( #5233 )
...
* Import ospaths instead of include
* searchExtPos made public
2017-01-18 20:17:53 +01:00
Dominik Picheta
76bc890e36
Fixes bootstrapping.
2017-01-06 15:02:09 +00:00
Araq
36964d7491
findExe finds cmd and bat files; refs #5049
2017-01-06 14:07:47 +01:00
Dmitry Polienko
bc305261d9
Fix isAbsolute for Windows root directories
2016-10-22 18:47:45 +07:00
Rostyslav Dzinko
dfc66ca02d
Fixed findExe behaviour on Linux with symlinks relative paths
2016-07-20 12:56:11 +03:00
Andreas Rumpf
ab9e44dc96
better fix for #4497
2016-07-19 14:13:23 +02:00
Andreas Rumpf
3193a99b13
fixes #4497
2016-07-18 13:52:27 +02:00
Hans Raaf
c00bb2ca82
findExe() now by default follows symlinks.
2016-07-17 01:07:09 +02:00
Andreas Rumpf
28940ce457
ospaths can always be imported; fixes #4249
2016-07-06 20:16:55 +02:00
Andreas Rumpf
d338744d7a
os.findExe on Windows can deal with quotes
2016-01-26 12:43:07 +01:00
Araq
4705cf2308
cleaned up ospaths module
2015-10-12 16:55:23 +02:00
Aman Gupta
59d226221b
Merge remote-tracking branch 'origin/devel' into fix-test-failures
2015-10-02 13:38:35 -07:00
Hans Raaf
437603a812
Added ReadIOEffect because thats what happens on OSX.
2015-10-02 13:54:55 +02:00
Aman Gupta
61ace9e394
fix failure in lib/pure/ospaths.nim
...
FAIL: ospaths.nim
Test "lib/pure/ospaths.nim" in category "lib"
Failure: reNimcCrash
Expected:
Gotten:
invalid pragma: rtl
2015-09-30 20:14:14 -07:00
Araq
adf34082f0
documented NimScript
2015-09-07 12:31:34 +02:00
Araq
178275f494
split os into os and ospaths parts; ospaths is available for NimScript; better NimScript support
2015-09-04 12:22:23 +02:00