executeShell doesn't work but system does

Satoshi via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 27 06:23:55 PDT 2016


On Sunday, 26 June 2016 at 19:01:07 UTC, cym13 wrote:
> On Sunday, 26 June 2016 at 17:56:08 UTC, Satoshi wrote:
>> On Sunday, 26 June 2016 at 15:37:03 UTC, "Smoke" Adams wrote:
>>> system("cls") works but executeShell doesn't. system is 
>>> depreciated.
>>>
>>> What's going on? The docs say that it creates a new process. 
>>> I simply want to clear the console!
>>
>>
>> I have problem with executeShell on windows 10 (LDC 1.0.0) too.
>> When I rewrote it into http://prntscr.com/blc9j8 it works.
>
> OT but please, refrain from using screenshots. I know it's very 
> customary on windows but I can't copy paste code from a 
> screenshot to play with it and manually copying is error-prone. 
> We manipulate text, let's stay with it.

Sorry... It's same function as executeImpl just with changed 
byChunk to 1. It corrupt stack when I called the original 
function.

https://github.com/ldc-developers/phobos/blob/aa133b5927bbc5f9669374d5bb0f206f6f68cfe4/std/process.d#L2130


More information about the Digitalmars-d-learn mailing list