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
|