Commit graph

101 commits

Author SHA1 Message Date
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
Vladimir Panteleev
0ce3b719c6 std.process: Fix compilation on Linux 2012-03-16 01:40:23 +01:00
Vladimir Panteleev
026444c9c7 std.process: Fix constness and attributes 2012-03-01 18:00:24 +02:00
Vladimir Panteleev
4ccfb65ccc std.process: Optimize allocations in new functions
Optimized functions:
* escapeWindowsArgument
* escapePosixArgument
* escapeWindowsShellCommand
2012-03-01 17:46:59 +02:00
Vladimir Panteleev
c9fa9f1a44 std.process: Code comments
* Remove self-contradiction
* Clarify escapeWindowsArgument implementation
* Remove a redundant if subcondition in a unit test.
2012-02-26 15:26:35 +02:00
Vladimir Panteleev
f59faf724e std.process: More correctness + tests 2012-02-25 19:29:11 +02:00
Vladimir Panteleev
2248a95294 std.process: Generate browse docs on all platforms 2012-02-25 01:15:23 +02:00
Vladimir Panteleev
7718dc6a4f std.process: Use the new command line escaping functions 2012-02-25 01:09:34 +02:00
Vladimir Panteleev
7c5cc95ae4 std.process: Add command line escaping functions 2012-02-25 01:09:21 +02:00
jmdavis
9f9028829c Fixed documentation for std.process.shell so that it shows up.
http://d.puremagic.com/issues/show_bug.cgi?id=7040
2011-12-06 12:39:18 -08:00
David Nadlinger
e312f9898b Strict @property syntax compliance.
This enables the test suite to build with the -property switch enabled.

std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
Andrei Alexandrescu
703f612973 Fixed wrong C library lookups 2011-11-12 21:55:22 -06:00
Walter Bright
27925dd666 Merge branch 'master' of github.com:D-Programming-Language/phobos 2011-10-07 23:32:49 -07:00
Brad Roberts
e7961aa9b2 fix the osx std.process changes, environ shouldn't have been extern c 2011-10-04 10:58:44 -07:00
jmdavis
6f9e0b98ed Fix circular dependency on Mac OS X. 2011-10-03 21:13:34 -07:00
Brad Roberts
157af2ffef add import of core.thread to std.process 2011-10-02 13:44:24 -07:00