Daniel Murphy
e3cdb418ea
Merge pull request #1873 from lionello/bug4483
...
Preparation for issue 4483, specifying foreach char iteration type
2014-07-16 21:59:26 +10:00
Joakim
dc67efc3c4
Deprecate std.c.string and move its contents to druntime
2014-07-13 12:47:26 -05:00
Михаил Страшун
3ee34072a6
Merge pull request #2150 from joakim-noah/android
...
Get tests passing on Android/x86
2014-07-12 04:05:07 +03:00
Lars T. Kyllingstad
b7af42bafa
Fix issue #13100 - std.process.setCLOEXEC() throws
...
There are two cases in which the fcntl() calls may fail:
1) the file descriptor is invalid, in which case errno == EBADF,
2) they receive invalid arguments, in which case errno == EINVAL.
We just want to ignore the error in the former case, as evidenced by
the bug report, and the latter means that we have an error in
std.process, which is best handled by an assertion. (Note that it was
never possible to catch the exception anyway, since it was thrown in
the child process.)
2014-07-11 21:09:49 +02:00
Joakim
11de397dd7
Start getting tests passing on Android/x86
2014-07-09 17:52:15 -05:00
Denis Shelomovskij
176f1246f3
Issue 12898 - std.process.browse
expects URL to be encoded in CP_ACP on Windows instead of UTF-8
...
Use Unicode version of `ShellExecute` in `std.process.browse`.
Also remove needless `ShellExecuteA` declaration.
2014-06-12 17:42:09 +04:00
Martin Krejcirik
0812ecd1f6
Fix missing program name in std.process.spawnProcessImpl exception message.
2014-06-10 01:45:33 +02:00
monarch dodra
f07abda274
Fix Issue 11308 - Don't use Voldemort types for std.process output
...
So that the return type of `execute` and `executeShell` are compatible.
2014-04-18 08:10:35 +02:00
Lars T. Kyllingstad
46d8bdf779
Merge pull request #1928 from CyberShadow/std-process-cwd
...
std.process: Add workDir parameter
2014-03-04 23:00:40 +01:00
Rainer Schuetze
40c14681f3
std.digest.sha: disable SSSE3 for SHA because it has unsupported calling convention
...
std.format, std.math: workarounds for different behaviour of sprintf
std.conv: workarounds for different behaviour of strtold
std.math: disable unittests for exp2f and exp2l
std.math: fix lrint(real), disable tmpfile test
std.process: seek to end of file before trying to append to it from another process
std.process: do not try to terminate an invalid process handle
win64.mak: disable COMDAT folding for release build
2014-02-27 22:16:29 +01:00
Vladimir Panteleev
5fbaa8b5cb
std.process: Add workDir parameter
2014-02-12 20:44:48 +00:00
Vladimir Panteleev
b593b30ce1
std.stdio: Add File.windowsHandle, fdopen and windowsHandleOpen
...
This moves existing code from std.process to std.stdio for public use.
2014-02-12 02:39:36 +00:00
k-hara
b391b2ec9f
Convert to new alias syntax
2014-02-11 15:27:05 +09:00
Vladimir Panteleev
e354f65e93
std.process: Improve shell escaping on Windows (issue 10863)
2014-02-09 02:22:07 +00:00
Lionello Lunesu
eca3a10dd2
Fix Issue 4483 - foreach over string or wstring, where element type not specified
...
std.process does not support Unicode and assume it's iterating over
ASCII.
2014-01-17 17:33:25 +08:00
Andrei Alexandrescu
21b3ee3b1c
Better unittests in process.d
2013-12-22 23:04:16 -08:00
Andrei Alexandrescu
4093af87a9
Removed spurious messages, fixed unittest errors
2013-12-19 18:58:33 -08:00
Nikhil Padmanabhan
cbe9a79d08
Fix completely trivial typo in std.process.execute documentation
2013-12-10 14:58:35 -05:00
Daniel Murphy
13f343334c
Remove cases where an array is used in a boolean context
2013-11-27 18:23:07 +11:00
Martin Nowak
17e5cc91a7
fix Issue 11112 - Unable to execute shell commands in different threads
...
- the environPtr initializer was only called for the main thread
2013-11-17 02:29:00 +01:00
arpie42
9f0db455b1
Corrected execute() example in ddoc comments
2013-10-15 17:58:19 +02:00
Andrei Alexandrescu
e69f4dc793
Merge pull request #1618 from CyberShadow/std-process-gui-spawnprocess
...
std.process: Fix spawnProcess in Windows GUI programs (issue #11180 )
2013-10-08 21:45:55 -07:00
Vladimir Panteleev
24255bd0b7
std.process: Fix spawnProcess in Windows GUI programs (issue #11180 )
2013-10-06 06:35:32 +00:00
Vladimir Panteleev
41ca4e882d
Reintroduce missing test-cases for escapeShellCommand.
2013-09-18 00:41:08 +02:00
Lionello Lunesu
b4074054ba
Fix issue 10893: added missing or renamed DDoc parameters (found by fix to 10236)
2013-08-31 15:36:29 +08:00
Jonathan M Davis
8df771ca53
Merge pull request #1451 from kyllingstad/std-process-all-strings
...
Allow non-immutable input strings in std.process
2013-08-06 15:17:15 -07:00
monarch dodra
3d7e9b5d21
Merge pull request #1394 from 9rnsr/enforceProp
...
Supplemental change for dmd/pull/2305
2013-08-05 10:41:17 -07:00
Lars T. Kyllingstad
d0c56dfe38
Allow non-immutable input strings in std.process
...
`string` has been replaced by `in char[]` or similar where possible.
2013-08-04 14:23:13 +02:00
Lars T. Kyllingstad
690bb868ed
Fix Issue 10216 - Bad warning in std.process.kill
2013-07-28 17:28:04 +02:00
Vladimir Panteleev
b30c347f50
std.process: Remove incorrect usage of file RangeError ctor parameter
...
The code attempted to construct a RangeError object with a
"Command line is empty" string as the first parameter. However,
the first parameter specifies the source file (and defaults to
__FILE__), not the reason (which is always "Range violation").
2013-07-26 23:46:15 +00:00
k-hara
30356d606f
Fix @property annotations and incorrect parenthesis
2013-07-16 00:31:26 +09:00
Daniel Murphy
4e7cb93c44
Merge pull request #1371 from AndrejMitrovic/Fix10469
...
Issue 10469 - Remove WinAPI prototypes and enums from std.process.
2013-06-24 22:56:53 -07:00
k-hara
03a32d6fa4
Fix issue 313 & 314
2013-06-25 08:38:30 +09:00
Andrej Mitrovic
f7b36b9124
Fixes Issue 10469 - Remove WinAPI prototypes and enums from std.process.
2013-06-25 00:32:52 +02:00
Lars T. Kyllingstad
07466cde53
std.process redesigned
...
This is a complete redesign of std.process. It has passed the community
review and is now ready for inclusion in Phobos master.
Review and vote:
http://forum.dlang.org/thread/gclsbrghhjitnfderoos@forum.dlang.org
http://forum.dlang.org/thread/mgstnugckomjpvdgpudz@forum.dlang.org
2013-05-01 10:22:19 +02:00
Vladimir Panteleev
128f1e4f3a
std.process: Add an additional unit test for escapeShellCommand (issue 9310)
2013-02-25 01:45:54 +02:00
Ferdinand Majerech
d8097b046d
DDoc clarification: std.process.shell throws ErrnoException.
2013-02-23 11:13:23 +01:00
Andrej Mitrovic
2844f0ef3b
Fixes Issue 9444 - Exception must be thrown on Posix when shell() call fails.
2013-02-12 23:42:42 +01:00
k-hara
01df2f60be
Remove redundant parenthesis for getters, and use assignment syntax for setters
2012-11-23 15:07:17 +09:00
Brad Roberts
4fdf88e0d2
hack to work around cygwin related oddity
2012-10-22 03:41:21 +01:00
jmdavis
27469366a7
Fix modules which incorrectly use std.string's public imports.
...
Now, they should be correctly importing for the functions publicly
imported by std.string so that if those public imports are ever removed,
they won't break.
2012-09-30 03:29:37 -07:00
Greg Ward
44aabd8919
std.process: fix markup in doc for exec*().
...
Use the $(D ...) macro to indicate identifiers and code snippets.
2012-09-26 11:36:03 -04:00
Greg Ward
d15efcd716
std.process: remove an unnecessary word from doc for execv*().
...
It's unusual, but perfectly valid, to re-exec() the same command as
is currently running.
2012-09-24 08:06:29 -04:00
Greg Ward
1eb50b5b1c
std.process: Fix documentation for exec*() functions.
...
They really are just like POSIX exec*(), i.e. they do not return an
exit status. In fact, they don't return at all on success.
Unfortunately, it looks like all you get on failure is a return value
of -1, no indication of whether the failure was "No such file or
directory", "Permission denied", etc.
2012-09-21 14:24:35 -04:00
djhworld
d194cd96b4
Removed useless comments
2012-09-15 23:21:07 +01:00
djhworld
eff38348a3
Updated the OSX portion of the "browse" method to not use Safari by
...
default. The "open" command will use the default application for the
arguments provided.
2012-09-15 22:25:32 +01:00
Vladimir Panteleev
96556b54f3
std.process: Fix escapePosixArgumentImpl
2012-08-10 10:15:06 +03:00
dawg
f38bc8c08b
remove windows declarations
...
- now added to druntime
2012-05-24 00:21:11 +02:00
Andrei Alexandrescu
41e6decef9
Merge pull request #460 from quickfur/6926-process
...
Code cleanup & fix issue 6926
2012-05-20 14:48:10 -07:00
H. S. Teoh
30d712161b
- Replace Linux-specific definitions of stopped, signaled, etc., with
...
portable versions from core.sys.posix.sys.wait.
- Fix system() to return -1 on abnormal termination, not just
exitstatus(status) which may be 0.
2012-03-28 07:48:07 -07:00