[#9722] Kernel#system broken inside Dir.chdir(&block) if system command doesn't have shell characters — <noreply@...>

Bugs item #7278, was opened at 2006-12-14 13:59

8 messages 2006/12/14

[#9749] System V IPC in standard library? — Steven Jenkins <steven.jenkins@...>

Back in August, I needed a semaphore to serialize access to an external

14 messages 2006/12/19

[#9753] CVS freeze — SASADA Koichi <ko1@...>

Hi,

20 messages 2006/12/20
[#9755] Re: [ruby-dev:30039] CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

[#9757] Re: [ruby-dev:30040] Re: CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

Re: [ ruby-Bugs-7278 ] Kernel#system broken inside Dir.chdir(&block) if system command doesn't have shell characters

From: Ryan Davis <ryand-ruby@...>
Date: 2006-12-15 21:25:25 UTC
List: ruby-core #9732
On Dec 15, 2006, at 12:08 AM, Jim Helm wrote:

> Sounds like the difference betwen exec and /bin/sh running p4 could  
> still be the cause...
>
> Try this, and see if there's anything missing from the bare "env"  
> output that's present in the "env;" output that might affect perforce.
>
> ruby -e 'system("env")'
> ruby -e 'system("env;")'
>
> I bet you'll find an env var that's maybe in .bashrc or the like,  
> that isn't sourced when ruby uses /bin/sh to run the script.

I think you're both barking up the wrong tree.

523 % ruby -e 'system "env"' | sort > x
524 % ruby -e 'system "env;"' | sort > y
525 % diff x y
17d16
< OLDPWD=/Users/ryan/Work/p4/zss/src/miniunit
26c25
< SHLVL=1
---
 > SHLVL=2
37c36
< _=/usr/local/bin/ruby
---
 > _=/usr/bin/env



In This Thread