Re: Environment variables in BBEdit scripts

2016-08-20 Thread Oliver Boermans
False alarm, I was running an less than current version of BBEdit (probably a pre-release). Variables come through fine with current release (and current pre-release). Face palm… On 21 August 2016 at 08:55, Oliver Boermans wrote: > > On 20 August 2016 at 23:36, Christopher

Re: Environment variables in BBEdit scripts

2016-08-20 Thread Oliver Boermans
On 20 August 2016 at 23:36, Christopher Stone wrote: > #! /usr/bin/env bash > echo -e "BBEdit Environment Variables\n"; > echo -e " > Doc Name: $BB_DOC_NAME > Doc Path: $BB_DOC_PATH > Doc Mode: $BB_DOC_MODE > Doc Language: $BB_DOC_LANGUAGE > Doc Sel Start:

Re: Environment variables in BBEdit scripts

2016-08-20 Thread Christopher Stone
On Aug 20, 2016, at 07:24, Oliver Boermans wrote: > If I execute this script from the scripts menu in BBEdit: > … > Should I be seeing BB_DOC_NAME, BB_DOC_PATH and friends in the list that is > output? > > I have been attempting to use these variables in a script, but they

Environment variables in BBEdit scripts

2016-08-20 Thread Oliver Boermans
If I execute this script from the scripts menu in BBEdit: #!/bin/sh printenv Should I be seeing BB_DOC_NAME, BB_DOC_PATH and friends in the list that is output? I have been attempting to use these variables in a script, but they are returning nothing, i.e. #!/bin/sh echo $BB_DOC_NAME What