On Thu, 29 Sep 2011 17:20:44 -0400, Steven Schveighoffer wrote:
> On Thu, 29 Sep 2011 17:02:28 -0400, Nick Sabalausky wrote:
>
>> "Graham Fawcett" wrote in message
>> news:j62ido$1n0s$1...@digitalmars.com...
>>> On Thu, 29 Sep 2011 13:31:13 -0400, Nick Sabalausky wrote:
>>>
Due to process
On Fri, 30 Sep 2011 07:18:34 +0100, Jacob Carlborg wrote:
On 2011-09-29 19:31, Nick Sabalausky wrote:
Due to process separation, the following won't work:
script.sh:
#!/bin/sh
SOME_VAR=foobar
test.d:
import std.process;
void main()
{
system("./script.sh");
assert(environment["SOME_
On 2011-09-29 19:31, Nick Sabalausky wrote:
Due to process separation, the following won't work:
script.sh:
#!/bin/sh
SOME_VAR=foobar
test.d:
import std.process;
void main()
{
system("./script.sh");
assert(environment["SOME_VAR"] == "foobar");
}
This, of course, is because the script
On Thu, 29 Sep 2011 17:02:28 -0400, Nick Sabalausky wrote:
"Graham Fawcett" wrote in message
news:j62ido$1n0s$1...@digitalmars.com...
On Thu, 29 Sep 2011 13:31:13 -0400, Nick Sabalausky wrote:
Due to process separation, the following won't work:
script.sh:
#!/bin/sh
SOME_VAR=foobar
test.d
"Graham Fawcett" wrote in message
news:j62ido$1n0s$1...@digitalmars.com...
> On Thu, 29 Sep 2011 13:31:13 -0400, Nick Sabalausky wrote:
>
>> Due to process separation, the following won't work:
>>
>> script.sh:
>> #!/bin/sh
>> SOME_VAR=foobar
>>
>> test.d:
>> import std.process;
>> void main()
>>
"Steven Schveighoffer" wrote in message
news:op.v2k6axvveav7ka@localhost.localdomain...
> On Thu, 29 Sep 2011 13:31:13 -0400, Nick Sabalausky wrote:
>
>> Due to process separation, the following won't work:
>>
>> script.sh:
>> #!/bin/sh
>> SOME_VAR=foobar
>>
>> test.d:
>> import std.process;
>>
On Thu, 29 Sep 2011 13:31:13 -0400, Nick Sabalausky wrote:
Due to process separation, the following won't work:
script.sh:
#!/bin/sh
SOME_VAR=foobar
test.d:
import std.process;
void main()
{
system("./script.sh");
assert(environment["SOME_VAR"] == "foobar");
}
This, of course, is bec
On Thu, 29 Sep 2011 13:31:13 -0400, Nick Sabalausky wrote:
> Due to process separation, the following won't work:
>
> script.sh:
> #!/bin/sh
> SOME_VAR=foobar
>
> test.d:
> import std.process;
> void main()
> {
> system("./script.sh");
> assert(environment["SOME_VAR"] == "foobar");
> }
>
Due to process separation, the following won't work:
script.sh:
#!/bin/sh
SOME_VAR=foobar
test.d:
import std.process;
void main()
{
system("./script.sh");
assert(environment["SOME_VAR"] == "foobar");
}
This, of course, is because the script is run in a totally separate process
(AIUI). T