Tomohiro
c983466c15
Fix #14906 ( #14949 )
...
* Fix #14906 by wrapping outputStream with PipeOutStream
* Fix compile error when ./build_all.sh
* Use PipeOutStream on posix
* Fix compile error when build_all.sh
* Use ptr UncheckedArray
* Replace copyRefObj
* Remove tmp buffer from posPeekData
* Add more tests for outputStream
* Add comments about PipeOutStream.buffer
* Fix bug in posReadLine
* Move implementation of newPipeOutStream to streamwrapper module
2020-07-18 10:41:33 +02:00
narimiran
13193b2964
turn 'runnableExample' into 'code-block' to make nightlies green
...
This example doesn't work on our nightlies CI.
Other procs in this module already use 'code-block'.
2020-06-25 16:55:11 +02:00
Timothee Cour
041ee92bba
osproc.execCmdEx now takes an optional input for stdin, env, workingDir (#14211 )
...
* `osproc.execCmdEx` now takes an optional `input` for stdin
* execCmdEx now also takes an optional ``workingDir` and `env`
2020-05-13 13:45:36 +02:00
Timothee Cour
d11cb9d495
fix a critical bug in windows.osproc leading to resource leaks and blocking IO [backport] ( #14296 )
2020-05-11 11:14:21 +02:00
slangmgh
b56432bd8a
fix #14203 ( #14204 )
2020-05-03 09:50:08 +02:00
Miran
9c33bcac5c
change 'iff' to 'if' to stop "corrections" once and for all ( #14182 )
2020-05-01 15:54:03 +02:00
alaviss
5f6962337d
osproc: added a better version of waitForExit for Haiku ( #13938 )
...
Also modified tosprocterminate to verify waitForExit implementations.
2020-04-10 09:34:52 +02:00
Juan Carlos
afd0afe0a3
Deprecate when declared(echo):echo ( #13840 )
2020-04-02 02:56:18 +02:00
Juan Carlos
4816984726
Documentation, add more examples ( #13825 )
2020-04-01 19:39:58 +02:00
alaviss
0eaacbc2c4
More fixes for Haiku ( #13774 )
...
* osproc: move fork-based code path under the when conditional
* osproc: avoid using the environ global on Haiku
* osenv: import environ from stdlib.h on Haiku
Haiku's environ is declared in `<stdlib.h>` by default, differing from
POSIX and/or Linux. Import it from there to avoid collision with anyone
importing `<stdlib.h>` from Nim.
2020-03-27 09:08:13 +01:00
Tomohiro
a33b72af49
Fix error check code in osproc ( #13090 ) [backport]
2020-01-09 18:00:41 +01:00
Araq
3516947642
osproc: fixes regression
2019-12-24 17:33:27 +01:00
Araq
8f17a70fe1
ported osproc.nim to ARC
2019-12-24 17:33:27 +01:00
Andreas Rumpf
166048da5d
osproc needs 'import linux' for -d:useClone
2019-11-07 09:51:15 +01:00
narimiran
cc3e9ca164
remove unused imports
2019-11-06 12:01:00 +01:00
Andreas Rumpf
60d64d1aef
use system.move instead of system.shallowCopy if the GC mode requires it
2019-10-04 09:48:45 +02:00
narimiran
34d0be2ec1
[backport] run nimpretty on os-related stuff
2019-09-30 13:58:15 +02:00
Araq
c94647aeca
styleCheck: make the compiler and large parts of the stdlib compatible with --styleCheck:error
2019-07-10 12:42:41 +02:00
Andreas Rumpf
02b9af2f75
ABI fixes for OSX/BSD; fixes #6860 ( #11666 )
2019-07-06 13:00:29 +02:00
Jasper Jenkins
91f0626dcb
[bugfix] remove dangling ref ( #11576 )
2019-06-25 02:04:15 +02:00
Araq
9f5d9d1993
makes koch.nim sem'check with --newruntime
2019-04-06 19:13:10 +02:00
Araq
3b14f0ed10
see what appveyor thinks about this
2019-04-01 17:50:03 +02:00
Araq
c3067e36bb
newruntime: progress
2019-04-01 16:51:18 +02:00
Anthon van der Neut
5661a8303c
correct argument name, ( #10813 )
...
* correct argument name,
updated using poUsePath, based on feedback from c-blake
* Update osproc.nim
* explicit args parameter
2019-03-18 11:13:52 +01:00
narimiran
44d47134f9
Revert "Follow the documentation's recommendation ( #10808 )"
...
This reverts commit 1a13b3a14e .
2019-03-10 20:09:35 +01:00
Anthon van der Neut
1a13b3a14e
Follow the documentation's recommendation ( #10808 )
...
The doc states "Make sure to pass options explicitly.", but the example didn't.
Since constructing a string for the shell with appropriate quotes is non-trivial, the first example should be how to use `execProcess` including `args`
2019-03-08 13:20:36 +01:00
Miran
50d1a46537
better docs: osproc ( #10708 )
...
* better docs: osproc
* fix a typo in the docs, deprecate "demon"
2019-02-19 17:25:03 +01:00
Araq
70f0aab188
osproc: fix minor typo
2019-02-14 15:55:37 +01:00
Araq
e457ccc7e1
make travis green
2019-02-06 17:42:38 +01:00
Miran
214f48eae9
Remove long deprecated stuff ( #10332 )
2019-01-18 07:18:32 +01:00
Timothee Cour
9af85fb69f
fixes #10273 execShellCmd now returns nonzero when child killed with signal + other fixes ( #10274 )
...
* s/exitStatus(...)/exitStatusLikeShell(...)/
* fix #10273 execShellCmd now returns nonzero when child exits with signal
* test case for #10249 and explanation for the bug
* fix test failure
* add tests/nim.cfg
2019-01-13 09:00:39 +01:00
Timothee Cour
37cb5e8f53
Update osproc.nim ( #10043 )
2018-12-19 11:25:50 +01:00
Timothee Cour
2d404a5a24
undo last commit (meant to send a PR instead)
2018-12-18 22:42:19 -08:00
Timothee Cour
7b9ba71b47
Update osproc.nim
2018-12-18 22:39:08 -08:00
Timothee Cour
e4850b7f1c
address comments
2018-12-04 02:51:27 -08:00
Timothee Cour
c0a91970f2
fixup
2018-12-04 00:45:58 -08:00
Timothee Cour
af7d758cfc
address comments
2018-12-03 14:03:06 -08:00
Timothee Cour
0caab530fb
fixup
2018-12-03 12:51:28 -08:00
Timothee Cour
e7ab4817e2
fixup
2018-12-03 12:46:32 -08:00
Timothee Cour
b93fbcf09a
add osproc.processID()
2018-12-03 12:04:46 -08:00
Tomohiro
3a3ff76526
Add workingDir parameter to execProcess and test ( #9549 )
...
* Add workingDir parameter to execProcess
* Fix tests/stdlib/tosproc.nim compile error
* Suppress output from tosproc.nim
2018-11-26 10:28:44 +01:00
Arne Döring
9c2365d5c2
activated more tests, allow input in test spec
2018-11-23 11:58:28 +01:00
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
Andreas Rumpf
223e92b83a
stdlib: documenation updates, the exception names have been changed
2018-10-25 07:42:45 +02:00
Jacek Sieka
97738a4f28
Testament pre parallel ( #9137 )
...
* testament: move to root dir (it's not a test)
* osproc: fix process index passed to afterRunEvent for parallel runs
it was passing the index of the process, not index of all commands
* testament: complete file move
2018-10-12 17:27:47 +02:00
Timothee Cour
67aa8eab0b
add data.sysCommand when startProcessAuxSpawn raises
2018-09-06 03:12:10 -07:00
Araq
bacf08e65d
merged #8624 manually; fixes #8442 ; closes #8575
2018-08-31 11:19:42 +02:00
Timothee Cour
fbd9f9da95
execCmdEx stderr redirection ( #8162 )
2018-07-01 04:38:15 -04:00
Andreas Rumpf
feef109e60
make tests green again
2018-05-18 20:53:41 +02:00