Troubleshooting bbedit/p4 integration

2012-06-19 Thread mason k
I'm trying to make this work, but I think I have a more fundamental problem.

bbedit doesn't seem to be sourcing ~/.profile or ~/.bashrc before it runs.

I tested this by writing a short perl script to dump my environment.

Run in bbedit,
$VAR1 = {
  'BB_DOC_NAME' => 'test.pl',
  'HOME' => '/Users/mkramer',
  'COMMAND_MODE' => 'unix2003',
  'DISPLAY' => '/tmp/launch-YGGcAx/org.x:0',
  'BB_DOC_MODE' => 'perl',
  'VERSIONER_PERL_PREFER_32_BIT' => 'no',
  'BB_DOC_LANGUAGE' => 'Perl',
  'BB_DOC_SELEND' => '70',
  'SSH_AUTH_SOCK' => '/tmp/launch-ttVlfb/Listeners',
  'Apple_PubSub_Socket_Render' => '/tmp/launch-kKuG0b/Render',
  'BB_DOC_SELSTART_COLUMN' => '35',
  'PWD' => '/Users/mkramer/Documents',
  'USER' => 'mkramer',
  'Apple_Ubiquity_Message' => 
'/tmp/launch-gWR0KQ/Apple_Ubiquity_Message',
  'BB_DOC_SELEND_COLUMN' => '35',
  'LOGNAME' => 'mkramer',
  'PYTHONIOENCODING' => 'utf_8',
  '__CF_USER_TEXT_ENCODING' => '0x1F5:0:0',
  'BB_DOC_SELSTART_LINE' => '5',
  'BB_DOC_SELSTART' => '70',
  'PATH' => '/usr/bin:/bin:/usr/sbin:/sbin',
  'SHELL' => '/bin/bash',
  'BB_DOC_PATH' => '/Users/mkramer/Documents/test.pl',
  'TMPDIR' => '/var/folders/4l/6fcj16pn1x767zptqmstd8bcgn/T/',
  'BB_DOC_SELEND_LINE' => '5',
  'VERSIONER_PERL_VERSION' => '5.12'
};

None of the env I export from my rc files is showing up.  What do I need to 
do about that?

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Re: Troubleshooting bbedit/p4 integration

2012-06-19 Thread Rich Siegel

On Tuesday, June 19, 2012, mason k  wrote:


bbedit doesn't seem to be sourcing ~/.profile or ~/.bashrc before it runs.


GUI applications don't get your bash (or other shell) 
customizations; you need to use ~/.MacOSX/environment.plist. See .


R.
--
Rich Siegel Bare Bones Software, Inc.
  

Someday I'll look back on all this and laugh... until they 
sedate me.


--
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.

Follow @bbedit on Twitter: 


Re: Troubleshooting bbedit/p4 integration

2012-06-20 Thread mason k
Thanks. I went and refreshed my memory on how Mac handles environment, and 
ended up at this stackoverflow answer 
answer, 
and went with ~/.launchd.conf

On Tuesday, June 19, 2012 12:32:35 PM UTC-4, Rich Siegel wrote:
>
> On Tuesday, June 19, 2012, mason k  wrote: 
>
> >bbedit doesn't seem to be sourcing ~/.profile or ~/.bashrc before it 
> runs. 
>
> GUI applications don't get your bash (or other shell) 
> customizations; you need to use ~/.MacOSX/environment.plist. See <
> http://developer.apple.com/library/mac/#qa/qa1067/_index.html>. 
>
> R. 
> -- 
> Rich Siegel Bare Bones Software, Inc. 
>    
>
> Someday I'll look back on all this and laugh... until they 
> sedate me. 
>
>

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 


Re: Troubleshooting bbedit/p4 integration

2012-06-21 Thread Doug McNutt
At 17:19 -0700 6/20/12, mason k wrote:
>Thanks. I went and refreshed my memory on how Mac handles environment, and 
>ended up at this stackoverflow 
>answer answer, and went with ~/.launchd.conf
>
>On Tuesday, June 19, 2012 12:32:35 PM UTC-4, Rich Siegel wrote:
>
>On Tuesday, June 19, 2012, mason k 
><mason.kra...@gmail.com> wrote:
>
>>bbedit doesn't seem to be sourcing ~/.profile or ~/.bashrc before it runs.
>
>GUI applications don't get your bash (or other shell)
>customizations; you need to use ~/.MacOSX/environment.plist. See 
><http://developer.apple.com/library/mac/#qa/qa1067/_index.html>.
>
>R.

BBEdit and other applications can be run from a Terminal session.

If you start up BBEdit using the bbedit tool to open a file with a command you 
will become a process as a child of Terminal.app which will have your 
environment and other settings in .tcshrc for me or .profile for folks who 
didn't learn the Apple command line in MPW.

I start up a BBEdit worksheet that way and use stored startup lines inside 
which open other text files when I want them.

-- 

Applescript syntax is like English spelling:
Roughly, though not thoroughly, thought through.

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: